public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* SysFS, module names and .name
@ 2005-09-01 20:28 iSteve
  2005-09-02 15:53 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: iSteve @ 2005-09-01 20:28 UTC (permalink / raw)
  To: linux-kernel

Greetings,
in sysfs, /sys/bus/*/drivers lists the driver names, with their exported 
.name (eg. '.name = "EMU10K1_Audigy"' in the module code, from now on 
'driver name'). In /sys/modules, the kernel modules are listed with 
their module name, eg. snd_emu10k1. However, it seems to me that in 
sysfs, there is no way in particular to tell, which module has which 
.name. That is, that snd_emu10k1 is EMU10K1_Audigy and vice versa.

I wonder whether it wouldn't be possible to add a symlink to the 
particular module from the driver, and/or from the module to the driver, 
so the list of devices handled by the module and the module name would 
be accessible. This way, I would know which driver name corresponds to 
which module name and vice versa.

Or am I just boldly missing something, and there is a way how to do this 
from userspace, preferably without reading /proc/kcore?

Thanks in advance for reply.

  - iSteve

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

end of thread, other threads:[~2005-09-03 10:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-01 20:28 SysFS, module names and .name iSteve
2005-09-02 15:53 ` Greg KH
2005-09-02 22:17   ` iSteve
2005-09-03  5:31     ` Greg KH
2005-09-03 10:55       ` James Courtier-Dutton

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