creating PCI-related sysfs entries

Greg KH greg at kroah.com
Wed Feb 1 07:34:56 EST 2006


On Tue, Jan 31, 2006 at 02:22:14PM -0600, linas wrote:
> 
> Hi, 
> 
> I want to create some sysfs entries in order to report on the 
> status of PCI slots.  (If you are guessing that this pertains
> to the PCI error recovery code, you'd be right).  I'm having 
> trouble figuring out the best way to do this.
> 
> There are existing entries at /sys/bus/pci/slots/... but these
> are for hotplug slots only; none of the soldered-onto-the-MB
> devices show up here.  Is this intentional, or is this a bug/
> overshight/not-yet-implemented thing?

Not implemented, as it's up to a pci hotplug controller driver to
provide those slots.  It sounds like your driver needs to be expanded :)

> I also want to report some roll-up system-wide statistics
> both /sys/module and /sys/class seem reasonable. My code
> does not compile as a module. Suggestions?

What kind of statistics?  Is this driver related?  PCI bus related?
Device related?

thanks,

greg k-h



More information about the Linuxppc64-dev mailing list