• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1What:		/sys/module
2Description:
3	The /sys/module tree consists of the following structure:
4
5	/sys/module/MODULENAME
6		The name of the module that is in the kernel.  This
7		module name will always show up if the module is loaded as a
8		dynamic module.  If it is built directly into the kernel, it
9		will only show up if it has a version or at least one
10		parameter.
11
12		Note: The conditions of creation in the built-in case are not
13		by design and may be removed in the future.
14
15	/sys/module/MODULENAME/parameters
16		This directory contains individual files that are each
17		individual parameters of the module that are able to be
18		changed at runtime.  See the individual module
19		documentation as to the contents of these parameters and
20		what they accomplish.
21
22		Note: The individual parameter names and values are not
23		considered stable, only the fact that they will be
24		placed in this location within sysfs.  See the
25		individual driver documentation for details as to the
26		stability of the different parameters.
27
28	/sys/module/MODULENAME/refcnt
29		If the module is able to be unloaded from the kernel, this file
30		will contain the current reference count of the module.
31
32		Note: If the module is built into the kernel, or if the
33		CONFIG_MODULE_UNLOAD kernel configuration value is not enabled,
34		this file will not be present.
35
36What:		/sys/module/MODULENAME/scmversion
37Date:		November 2020
38KernelVersion:	Android Common Kernel -- android12-5.10+
39Contact:	Will McVicker <willmcvicker@google.com>
40Description:	This read-only file will appear if modpost was supplied with an
41		SCM version for the module. It can be enabled with the config
42		MODULE_SCMVERSION. The SCM version is retrieved by
43		scripts/setlocalversion, which means that the presence of this
44		file depends on CONFIG_LOCALVERSION_AUTO=y. When read, the SCM
45		version that the module was compiled with is returned. The SCM
46		version is returned in the following format::
47
48		===
49		Git:		g[a-f0-9]\+(-dirty)\?
50		Mercurial:	hg[a-f0-9]\+(-dirty)\?
51		Subversion:	svn[0-9]\+
52		===
53