1c18f6365SGreg Kroah-HartmanThe /sys/module tree consists of the following structure: 2c18f6365SGreg Kroah-Hartman 33b54fc50SMauro Carvalho ChehabWhat: /sys/module/<MODULENAME> 43b54fc50SMauro Carvalho ChehabDescription: 5c18f6365SGreg Kroah-Hartman The name of the module that is in the kernel. This 686f12003SJean Delvare module name will always show up if the module is loaded as a 786f12003SJean Delvare dynamic module. If it is built directly into the kernel, it 886f12003SJean Delvare will only show up if it has a version or at least one 986f12003SJean Delvare parameter. 1086f12003SJean Delvare 1186f12003SJean Delvare Note: The conditions of creation in the built-in case are not 1286f12003SJean Delvare by design and may be removed in the future. 13c18f6365SGreg Kroah-Hartman 143b54fc50SMauro Carvalho ChehabWhat: /sys/module/<MODULENAME>/parameters 153b54fc50SMauro Carvalho ChehabDescription: 16c18f6365SGreg Kroah-Hartman This directory contains individual files that are each 17c18f6365SGreg Kroah-Hartman individual parameters of the module that are able to be 18c18f6365SGreg Kroah-Hartman changed at runtime. See the individual module 19c18f6365SGreg Kroah-Hartman documentation as to the contents of these parameters and 20c18f6365SGreg Kroah-Hartman what they accomplish. 21c18f6365SGreg Kroah-Hartman 22c18f6365SGreg Kroah-Hartman Note: The individual parameter names and values are not 23c18f6365SGreg Kroah-Hartman considered stable, only the fact that they will be 24c18f6365SGreg Kroah-Hartman placed in this location within sysfs. See the 25c18f6365SGreg Kroah-Hartman individual driver documentation for details as to the 26c18f6365SGreg Kroah-Hartman stability of the different parameters. 27c18f6365SGreg Kroah-Hartman 283b54fc50SMauro Carvalho ChehabWhat: /sys/module/<MODULENAME>/refcnt 293b54fc50SMauro Carvalho ChehabDescription: 30c18f6365SGreg Kroah-Hartman If the module is able to be unloaded from the kernel, this file 31c18f6365SGreg Kroah-Hartman will contain the current reference count of the module. 32c18f6365SGreg Kroah-Hartman 33c18f6365SGreg Kroah-Hartman Note: If the module is built into the kernel, or if the 34c18f6365SGreg Kroah-Hartman CONFIG_MODULE_UNLOAD kernel configuration value is not enabled, 35c18f6365SGreg Kroah-Hartman this file will not be present. 3619aca231SMauro Carvalho Chehab 3719aca231SMauro Carvalho ChehabWhat: /sys/module/<MODULENAME>/srcversion 3819aca231SMauro Carvalho ChehabDate: Jun 2005 3919aca231SMauro Carvalho ChehabDescription: 4019aca231SMauro Carvalho Chehab If the module source has MODULE_VERSION, this file will contain 41*b18ee4a4SSlark Xiao the checksum of the source code. 4219aca231SMauro Carvalho Chehab 4319aca231SMauro Carvalho ChehabWhat: /sys/module/<MODULENAME>/version 4419aca231SMauro Carvalho ChehabDate: Jun 2005 4519aca231SMauro Carvalho ChehabDescription: 4619aca231SMauro Carvalho Chehab If the module source has MODULE_VERSION, this file will contain 4719aca231SMauro Carvalho Chehab the version of the source code. 48