login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
18
Re: [PATCH] PCI: create device, function symlinks in /sys/bus/pci/slots/N/
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Greg KH <greg@...>
To: Alex Chiang <achiang@...>, <jbarnes@...>, <matthew@...>, <linux-pci@...>, <linux-kernel@...>
Subject:
Re: [PATCH] PCI: create device, function symlinks in /sys/bus/pci/slots/N/
Date: Monday, August 18, 2008 - 4:46 pm
On Mon, Aug 18, 2008 at 02:21:00PM -0600, Alex Chiang wrote:
quoted text
> Create convenience symlinks in sysfs, linking slots to devices > and functions, and vice versa. These links make it easier for > users to figure out which devices actually live in what slots. > > The device symlink points to the device's first function. > > 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 device -> ../../../../devices/pci0000:23/0000:23:01.0 > 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/device/slot > lrwxrwxrwx 1 root root 0 Aug 18 14:13 3/device/slot -> ../../../bus/pci/slots/3 > > The original form of this patch was written by Matthew Wilcox, > but did not have links from the sysfs slots/ directory pointing > back at devices and functions.
As you are adding new sysfs files/symlinks, please document them in Documentation/ABI. thanks, greg k-h --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] PCI: create device, function symlinks in /sys/bus/pc...
, Alex Chiang
, (Mon Aug 18, 4:21 pm)
Re: [PATCH] PCI: create device, function symlinks in /sys/bu...
, Gary Hade
, (Mon Aug 18, 7:19 pm)
Re: [PATCH] PCI: create device, function symlinks in /sys/bu...
, Alex Chiang
, (Tue Aug 19, 2:47 pm)
Re: [PATCH] PCI: create device, function symlinks in /sys/bu...
, Matthew Wilcox
, (Tue Aug 19, 12:37 pm)
Re: [PATCH] PCI: create device, function symlinks in /sys/bu...
, Alex Chiang
, (Tue Aug 19, 2:29 pm)
Re: [PATCH] PCI: create device, function symlinks in /sys/bu...
, H. Peter Anvin
, (Mon Aug 18, 6:03 pm)
Re: [PATCH] PCI: create device, function symlinks in /sys/bu...
, Alex Chiang
, (Tue Aug 19, 11:53 am)
Re: [PATCH] PCI: create device, function symlinks in /sys/bu...
, Greg KH
, (Mon Aug 18, 4:46 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
debian developer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Linus Torvalds
Re: Slow DOWN, please!!!
Tony Lindgren
[PATCH 37/90] ARM: OMAP: MPUIO wake updates
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
Alexey Dobriyan
Re: [GIT]: Networking
Dushan Tcholich
Re: ksoftirqd high cpu load on kernels 2.6.24 to 2.6.27-rc1-mm1
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
760 guests
online.
Online users
strcmp
cukagu39
worldwideam
Syndicate