Greg Kroah-Hartman | c18f636 | 2006-04-27 14:10:12 -0700 | [diff] [blame] | 1 | What: /sys/module |
| 2 | Description: |
| 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 show up either if the module is built |
| 8 | directly into the kernel, or if it is loaded as a |
Masanari Iida | 40e4712 | 2012-03-04 23:16:11 +0900 | [diff] [blame] | 9 | dynamic module. |
Greg Kroah-Hartman | c18f636 | 2006-04-27 14:10:12 -0700 | [diff] [blame] | 10 | |
| 11 | /sys/module/MODULENAME/parameters |
| 12 | This directory contains individual files that are each |
| 13 | individual parameters of the module that are able to be |
| 14 | changed at runtime. See the individual module |
| 15 | documentation as to the contents of these parameters and |
| 16 | what they accomplish. |
| 17 | |
| 18 | Note: The individual parameter names and values are not |
| 19 | considered stable, only the fact that they will be |
| 20 | placed in this location within sysfs. See the |
| 21 | individual driver documentation for details as to the |
| 22 | stability of the different parameters. |
| 23 | |
| 24 | /sys/module/MODULENAME/refcnt |
| 25 | If the module is able to be unloaded from the kernel, this file |
| 26 | will contain the current reference count of the module. |
| 27 | |
| 28 | Note: If the module is built into the kernel, or if the |
| 29 | CONFIG_MODULE_UNLOAD kernel configuration value is not enabled, |
| 30 | this file will not be present. |