mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* sysfs - which driver for a device?
@ 2003-09-24  2:03 Jon Smirl
  2003-09-24  9:03 ` Daniel Stekloff
  2003-09-25 18:05 ` Patrick Mochel
  0 siblings, 2 replies; 3+ messages in thread
From: Jon Smirl @ 2003-09-24  2:03 UTC (permalink / raw)
  To: lkml

In sysfs it is easy to see which devices a driver is supporting.
For example /sys/bus/pci/drivers/e1000 links to 0000:02:0c.0 in my system.

But how do you go the other way; starting from 0000:02:0c.0 to determine the
driver? Is the best solution to loop though the drivers directories searching
for the device? Or would it be better to change sysfs to add an attribute to
each device containing the driver name?

In /proc/bus/pci/devices the driver name is the last field.


=====
Jon Smirl
jonsmirl@yahoo.com

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-09-25 18:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-24  2:03 sysfs - which driver for a device? Jon Smirl
2003-09-24  9:03 ` Daniel Stekloff
2003-09-25 18:05 ` Patrick Mochel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®