tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] pcictl: simplify its usage



On Thu, Jun 04, 2009 at 12:37:30PM +0200, Christoph Egger wrote:
> > I meant, a command to pcictl (like list and dump, something like listbus)
> 
> It wouldn't work that way.
> The functionality provided by pcictl is limited by the device file.
> For example, /dev/pci3 only lets it operate with devices attached on pci3.
> I need pcictl to operate on *all* devices therefore I had to fold the pci
> device files into one. This is the main functional change from the kernel 
> side.

Actually that's not true. The PCI_IOC_BDF_CFGREAD/CFGWRITE interface allows to
specify the bus number, and so to access any device in the system
regardless of which /dev/pci* was open. You could just add another ioctl
to get a list of busses.

-- 
Manuel Bouyer, LIP6, Universite Paris VI.           
Manuel.Bouyer%lip6.fr@localhost
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index