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