Question: I want to know Linux system kernel built modules, and each module which parameters. Is there any way you can get a list of built-in modules and device drivers, as well as their detailed information?
Modern Linux kernel are the time change rapidly in order to support a lot of hardware, file system and network functions. In the meantime, "loadable modules (loadable kernel modules, [LKM])" is introduced to prevent the kernel becomes more bloated, and in a different environment, the flexibility to expand capabilities and hardware support, without having to rebuild the kernel.
The latest Linux kernel release with only a relatively small "built-in module (built-in modules)", the rest of the hardware drivers specific or custom features as "Loadable Modules" to let you choose to load or unload.
Built-in module is statically compiled into the kernel. Unlike dynamically loadable kernel modules can be used modprobe, insmod, rmmod, modinfo lsmod command or the like to load, unload, query module, built-in modules are always loaded at startup into the kernel, these commands will not be managed.
To find a list of built-in module
To get a list of built-in modules, run the following command.
$ Cat / lib / modules / $ (uname-r) /modules.builtin
You can also use the following command to see what the built-in module
Find the built-in module parameters
Each kernel module either built-in or has a number of parameters that can be loaded. For loadable module, modinfo command can display their parameter information. However, this command does not use the built-in module. You will get the following error.
modinfo: ERROR: Module XXXXXX not found.
Parameters If you want to see built-in modules, as well as their values, you can check their contents in / sys / module.
In / sys / module directory, you can find the kernel modules (includes built-in and can be loaded) named subdirectory. Each module into the directory, there is a "parameters" directory, listing all the parameters of this module.
For example, you want to find tcp_cubic (default kernel TCP implementations) parameter module. You can do this:
$ Ls / sys / module / tcp_cubic / parameters
Then read this file to view the values for each parameter.
$ Cat / sys / module / tcp_cubic / parameters / tcp_friendliness