[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: slot number in Desk-top
On Thu, 9 Jan 2003, Mukul Prasad wrote:
| Hello Dinesh,
| Linux OS maintains the information about the PCI resources in the proc file
| system /proc/pci. from the shell you can view this file using "cat
| /proc/pci" command. you have to know the device id as well as the vendor ID
| to identify your device.
There's a good bit of PCI resource info there, but no slot number.
| If you are making a kernel module, following api can be used :
| pci_find_slot(unsigned int bus, unsigned int devfn)
But that function is misnamed. It uses bus:dev:function.
dev is being used interchangeably with slot.
In general, for a pee-cee desktop, the slot number can't
be found reliably.
| Mukul Prasad.
| -----Original Message-----
| From: Dinesh Kumar [mailto:firstname.lastname@example.org]
| Sent: Wednesday, January 08, 2003 8:46 AM
| To: email@example.com
| Subject: slot number in Desk-top
| Hi Experts,
| I have a basic qry.
| In a desk-top environment, is there a mechanism to find out which
| PCI card/resource is plugged in to which slot ? In other words, is
| it possible in OS level to read slot number of a particular PCI
| card plugged in to a desk-top ? Assume the machine is running in
| Any one experienced similar problems ?
| Thanks in advance