Bus space routines

Andriy Gapon avg at FreeBSD.org
Tue Jun 18 15:22:24 UTC 2013


on 18/06/2013 14:13 Marius Strobl said the following:
> What we really need is a proper interface allowing userland to access
> PCI I/O and memory registers, f. e. via /dev/pci, and for libpciaccess
> to build upon that, i. e. essentially the same as things work on/with
> Linux and /sys/bus/pci/device. As a side-effect this then also permits
> to properly sanity check PCI accesses from userland within the kernel.

We have this pciconf utility (in base), which can read PCI config registers (and
more).  Apparently it uses some ioctl interface of /dev/pci.
Is this the interface that you had in mind or does it lack some required capabilities?

-- 
Andriy Gapon


More information about the freebsd-arch mailing list