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

RE: slot number in Desk-top



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.

If you are making a kernel module, following api can be used :
pci_find_slot(unsigned int bus, unsigned int devfn)

Regards,
Mukul Prasad.

-----Original Message-----
From: Dinesh Kumar [mailto:eyesol@rediffmail.com]
Sent: Wednesday, January 08, 2003 8:46 AM
To: pci-sig@znyx.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
Solaris/Linux.
Any one experienced similar problems ?

Thanks in advance

Dinesh