login
Header Space

 
 

mmap() the BARs

September 11, 2008 - 4:01am
Anonymous (not verified)

Under current Linux kernels, the various PCI BARs exist as mmap-able files in /sys/bus/pci; for example, /sys/bus/pci/devices/0000:02:09.1/resource0 is BAR 0 of device 0000:02:09.1 on this machine. You could mmap() the BARs at the address you want and access the device directly.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <b> <quote> <pre> <hr> <br> <p> <img> <blockquote> <font> <tt> <table> <tr> <i>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

speck-geostationary