[openib-general] Re: mmap(/dev/mem) causing sigbus

Tom Duffy tomduffy at dslextreme.com
Fri Jan 14 14:30:34 PST 2005


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20050114/3199c7f4/attachment.sig>


More information about the general mailing list