RE: No linkage from /sys entries for a given scsi_host to its PCI device details?

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

 



On Mon, 2011-10-24 at 13:20 +0530, Sampathkumar, Kishore wrote:
> From the above, there is no linkage to the PCI device corresponding to
> the above host controller. The only way I could establish the linkage
> was to actually start from the PCI device ID for this controller, and
> then, doing the following: 

I do 

ls -l /sys/class/scsi_host

To get this:

lrwxrwxrwx 1 root root 0 Oct 24 09:25 host0
-> ../../devices/pci0000:00/0000:00:1f.2/host0/scsi_host/host0/
lrwxrwxrwx 1 root root 0 Oct 24 09:25 host1
-> ../../devices/pci0000:00/0000:00:1f.2/host1/scsi_host/host1/
lrwxrwxrwx 1 root root 0 Oct 24 09:25 host2
-> ../../devices/pci0000:00/0000:00:1f.2/host2/scsi_host/host2/
lrwxrwxrwx 1 root root 0 Oct 24 09:25 host3
-> ../../devices/pci0000:00/0000:00:1f.2/host3/scsi_host/host3/
lrwxrwxrwx 1 root root 0 Oct 24 09:25 host4
-> ../../devices/pci0000:00/0000:00:1f.2/host4/scsi_host/host4/
lrwxrwxrwx 1 root root 0 Oct 24 09:25 host5
-> ../../devices/pci0000:00/0000:00:1f.2/host5/scsi_host/host5/

Which allows an easy link back.

James


--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux