All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Duffy <tomduffy@dslextreme.com>
To: sparclinux@vger.kernel.org
Subject: Re: [openib-general] Re: mmap(/dev/mem) causing sigbus
Date: Fri, 14 Jan 2005 22:30:34 +0000	[thread overview]
Message-ID: <1105741834.22751.17.camel@duffman> (raw)
In-Reply-To: <1105657934.2527.96.camel@duffman>

[-- Attachment #1: Type: text/plain, Size: 509 bytes --]

On Thu, 2005-01-13 at 15:29 -0800, David S. Miller wrote:
> It's not meant to be used at all.  We have abstracted out a way
> to portably mmap() pci devices by opening /proc/bus/pci/* nodes,
> running the appropriate ioctl() to choose I/O or MEM space,
> then mmap()'ing on the fd to mmap the PCI device resources.
> 
> At the very least, i386 and ppc support this interface as well.

Dave, thanks for the info.  The maintainer of the tool has updated it to
use the /proc/bus/pci method.

-tduffy

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      parent reply	other threads:[~2005-01-14 22:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-13 23:12 mmap(/dev/mem) causing sigbus Tom Duffy
2005-01-13 23:29 ` David S. Miller
2005-01-14 22:30 ` Tom Duffy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1105741834.22751.17.camel@duffman \
    --to=tomduffy@dslextreme.com \
    --cc=sparclinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.