Re: multi-domain PCI and sysfs

From: Jesse Barnes
Date: Sat Sep 04 2004 - 16:59:59 EST


On Saturday, September 4, 2004 1:00 pm, Jon Smirl wrote:
> How do multiple PCI domains appear in sysfs? I don't own a machine
> with these so I can't just look.
>
> Do they appear like:
> /sys/devices/pci0000:00
> /sys/devices/pci0001:00
> /sys/devices/pci0002:00

Yep, on all the machines I've used.

sn2 (ia64):
[root@flatearth ~]# ls -l /sys/devices
total 0
drwxr-xr-x 5 root root 0 Sep 5 08:07 pci0000:01
drwxr-xr-x 3 root root 0 Sep 5 08:07 pci0000:02
drwxr-xr-x 2 root root 0 Sep 5 08:07 platform
drwxr-xr-x 5 root root 0 Sep 5 08:07 system
[root@flatearth ~]# ls -l /sys/devices/pci0000\:02
total 0
drwxr-xr-x 2 root root 0 Sep 5 08:07 0000:02:01.0
-rw-r--r-- 1 root root 16384 Sep 5 08:07 detach_state

ppc32:
jbarnes@mill:~$ ls -l /sys/devices
total 0
drwxr-xr-x 5 root root 0 Sep 4 13:37 pci0000:00/
drwxr-xr-x 13 root root 0 Sep 4 13:37 pci0001:01/
drwxr-xr-x 7 root root 0 Sep 4 13:37 pci0002:06/
drwxr-xr-x 3 root root 0 Sep 4 13:37 platform/
drwxr-xr-x 4 root root 0 Sep 4 13:37 system/
drwxr-xr-x 5 root root 0 Sep 4 13:37 uni-n-i2c/
jbarnes@mill:~$ ls -l /sys/devices/pci0001\:01/
total 0
drwxr-xr-x 3 root root 0 Sep 4 13:37 0001:01:0b.0/
drwxr-xr-x 3 root root 0 Sep 4 13:37 0001:01:12.0/
drwxr-xr-x 3 root root 0 Sep 4 13:37 0001:01:13.0/
drwxr-xr-x 4 root root 0 Sep 4 13:37 0001:01:17.0/
drwxr-xr-x 3 root root 0 Sep 4 13:37 0001:01:18.0/
drwxr-xr-x 3 root root 0 Sep 4 13:37 0001:01:19.0/
drwxr-xr-x 4 root root 0 Sep 4 13:37 0001:01:1a.0/
drwxr-xr-x 4 root root 0 Sep 4 13:37 0001:01:1b.0/
drwxr-xr-x 4 root root 0 Sep 4 13:37 0001:01:1b.1/
drwxr-xr-x 3 root root 0 Sep 4 13:37 0001:01:1b.2/
-rw-r--r-- 1 root root 4096 Sep 4 13:37 detach_state
drwxr-xr-x 2 root root 0 Sep 4 13:37 power/

Jesse
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/