[Ilugc] pci slot mappings in Linux

  • From: knura@xxxxxxxxx (Arun Khan)
  • Date: Tue Mar 25 10:25:28 2008

On Tuesday 25 Mar 2008, Balu manyam wrote:

Hey folks -- Is there any reliable way to map PCI slot to device
names in Linux - that is given ethN I am trying to map it to phisical
location in the server - its been a long standing problem for me
..... especially if the server has different varieties of chipsets
installed (broadcom,intel,etc) -- i am looking for this to actually
make sure the drivers are attaching corrrectly .......

For example to do this in solaris - I would do a 'grep bgeNN
/etc/path_to_inst' #for the bge chipset and lookup the hardware
adress in sun site..........to identify the slot #

Long time back (2.4.x), in /etc/modules.conf one could force it like so
alias <driver1> eth0
alias <driver2> eth1

IIRC, some drivers took interrupt no. as an option to separate the NICs 
that used the same driver.

I have not done this on the 2.6.y kernel.

-- Arun Khan

Other related posts: