In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to display the built-in modules and device driver list of Linux system". The explanation in this article is simple and clear and easy to learn and understand. please follow the editor's train of thought to study and learn "how to display the built-in module and device driver list of Linux system".
Question: I want to know the built-in modules in the kernel of the Linux system and what parameters each module has. Is there any way to get a list of built-in modules and device drivers, as well as their details?
The modern Linux kernel is growing rapidly over time to support a wide range of hardware, file systems, and network functions. During this period, the introduction of "loadable modules (loadable kernel modules, [LKM])" prevented the kernel from becoming bloated and the flexibility to extend functionality and hardware support in different environments without having to rebuild the kernel.
The kernel of the latest Linux distribution comes with a relatively small "built-in module (built-in modules)", with the rest of the specific hardware drivers or custom features as "loadable modules" that allow you to load or unload selectively.
The built-in module is statically compiled into the kernel. Unlike loadable kernel modules that can dynamically load, unload, and query modules using commands such as modprobe, insmod, rmmod, modinfo, or lsmod, built-in modules are always loaded into the kernel at startup and will not be managed by these commands.
Find the list of built-in modules
To get a list of built-in modules, run the following command.
The code is as follows:
$cat / lib/modules/$ (uname-r) / modules.builtin
You can also use the following command to see which built-in modules are available:
Find the parameters of the built-in module
Each kernel module, whether built-in or loadable, has a series of parameters. For loadable modules, the modinfo command can display their parameter information. However, this command is of no use to the built-in module. You will get the following error.
The code is as follows:
Modinfo: ERROR: Module XXXXXX not found.
If you want to see the parameters of the built-in modules and their values, you can check their contents under / sys/module.
In the / sys/module directory, you can find subdirectories named by kernel modules (both built-in and loadable). Enter each module directory, where there is a "parameters" directory that lists all the parameters of the module.
For example, you need to find out the parameters of the tcp_cubic (the default TCP implementation of the kernel) module. You can do this:
The code is as follows:
$ls / sys/module/tcp_cubic/parameters
Then read this file to see the value of each parameter.
The code is as follows:
$cat / sys/module/tcp_cubic/parameters/tcp_friendliness
Thank you for your reading, the above is the content of "how to display the built-in module and device driver list of Linux system". After the study of this article, I believe you have a deeper understanding of how to display the built-in module and device driver list of Linux system. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 255
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.