forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/Documentation/ABI/stable/sysfs-module
....@@ -32,3 +32,21 @@
3232 Note: If the module is built into the kernel, or if the
3333 CONFIG_MODULE_UNLOAD kernel configuration value is not enabled,
3434 this file will not be present.
35
+
36
+What: /sys/module/MODULENAME/scmversion
37
+Date: November 2020
38
+KernelVersion: Android Common Kernel -- android12-5.10+
39
+Contact: Will McVicker <willmcvicker@google.com>
40
+Description: 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
+ ===