summaryrefslogtreecommitdiffstats
path: root/include/sound/cs4231-regs.h
diff options
context:
space:
mode:
authorAlex Chiang <achiang@hp.com>2010-03-08 10:24:29 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2010-05-11 12:01:07 -0700
commit75568f8094eb0333e9c2109b23cbc8b82d318a3c (patch)
treebdbd169b2220e067bc03f7445e2471aa2f8499a7 /include/sound/cs4231-regs.h
parentfc2a093e7ad23e935aa29e349bc27173c92f1a95 (diff)
downloadtalos-obmc-linux-75568f8094eb0333e9c2109b23cbc8b82d318a3c.tar.gz
talos-obmc-linux-75568f8094eb0333e9c2109b23cbc8b82d318a3c.zip
PCI: create function symlinks in /sys/bus/pci/slots/N/
Create convenience symlinks in sysfs, linking slots to device functions, and vice versa. These links make it easier for users to figure out which devices actually live in what slots. For example: sapphire:/sys/bus/pci/slots # ls 1 10 2 3 4 5 6 7 8 9 sapphire:/sys/bus/pci/slots # ls -l 3 total 0 -r--r--r-- 1 root root 65536 Aug 18 14:10 address lrwxrwxrwx 1 root root 0 Aug 18 14:10 function0 -> ../../../../devices/pci0000:23/0000:23:01.0 lrwxrwxrwx 1 root root 0 Aug 18 14:10 function1 -> ../../../../devices/pci0000:23/0000:23:01.1 sapphire:/sys/bus/pci/slots # ls -l 3/function0/slot lrwxrwxrwx 1 root root 0 Aug 18 14:13 3/function0/slot -> ../../../bus/pci/slots/3 The original form of this patch was written by Matthew Wilcox, and was enhanced to include links from the sysfs slots/ directory pointing back at the device functions. Cc: willy@linux.intel.com Signed-off-by: Alex Chiang <achiang@hp.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/sound/cs4231-regs.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud