On Wednesday, March 30, 2016 11:20:51 AM Jim Harris wrote: > On Wed, Mar 30, 2016 at 10:47 AM, Luigi Rizzo <rizzo_at_iet.unipi.it> wrote: > > > Hi, > > I'd like to test the rate at which I can access device registers > > on a PCIe card, and was wondering whether I need to patch a device > > driver, or perhaps I can use /dev/kmem once I figure out where > > the registers are mapped ? > > > > You do not need to patch a device driver. Have you looked at > libpciaccess? This should give you everything you need. You can also look at what pciconf uses. (It has a read_config() method that uses an ioctl on an fd of /dev/pci). -- John BaldwinReceived on Thu Mar 31 2016 - 19:53:10 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:03 UTC