public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* What is listed in /sys/module?
@ 2013-05-29  8:27 Jean Delvare
  2013-05-30  0:54 ` Rusty Russell
  0 siblings, 1 reply; 6+ messages in thread
From: Jean Delvare @ 2013-05-29  8:27 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rusty Russell; +Cc: LKML

Hi Greg, Rusty,

I have a question related to /sys/module and can't seem to find the
answer by myself so I hope you can explain.

I noticed that /sys/module contains more than /proc/modules. At first I
thought that any potentially modular piece of code would show up
in /sys/module, so /sys/module would include both actual modules and
"built-in modules".

However I then noticed that some built-in modules do _not_ show up
in /sys/module. For example, I have USB and I2C core support built into
my 3.9.4 kernel, /sys/module/usbcore exists but /sys/module/i2c_core
does not. CONFIG_SENSORS_W83795=y did not give me /sys/module/w83795
either.

So my questions are:
1* What exactly is supposed to show up in /sys/module?
   Documentation/ABI/stable/sysfs-module says:

	/sys/module/MODULENAME
		The name of the module that is in the kernel.  This
		module name will show up either if the module is built
		directly into the kernel, or if it is loaded as a
		dynamic module.

  But my tests above contradict this statement.

And more precisely:
2* For what reason do some built-in modules show up in /sys/module and
   others do not? Is it a bug?

Thanks,
-- 
Jean Delvare

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

end of thread, other threads:[~2013-05-30  9:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-29  8:27 What is listed in /sys/module? Jean Delvare
2013-05-30  0:54 ` Rusty Russell
2013-05-30  6:23   ` anish singh
2013-05-30  8:34     ` Jean Delvare
2013-05-30  9:26       ` anish singh
2013-05-30  9:38         ` Jean Delvare

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