lkml.org 
[lkml]   [2009]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v9 6/7] PCI: document SR-IOV sysfs entries
On Wed, Feb 18, 2009 at 03:21:55AM +0800, Yu Zhao wrote:
> > Care to describe what you are trying to do first?
>
> I'd like to link child PCI devices to their parent PCI device's
> subdirectory. These child PCI devices are PCI functions that are on
> the same level as their parent in the PCI hierarchy, so current PCI code
> won't create symbol links for them in their parent directory as what it
> does for PCI bridge. For example, device 01:00.0 is the parent and 01:00.1
> is the child, I'd like to put a symbol link into
> /sys/bus/pci/device/0000:01:00.0/child/ which points to
> /sys/bus/pci/device/0000:01:00.1. This can let user space application
> know the relationship between this two devices.

If .1 is really the child of .0, then make it so in the sysfs tree in
the first place with the topology of the devices. That way you don't
need any special "child" directory, as that would be different from all
other device types in the system.

thanks,

greg k-h


\
 
 \ /
  Last update: 2009-02-18 16:37    [W:0.234 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site