English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux insmod Command

Linux Command大全

The Linux insmod (full English name: install module) command is used to load modules.

Many functions of Linux are loaded through modules, which are loaded into the kernel when needed. This can make the kernel more concise, improve efficiency, and maintain greater flexibility. Such loadable modules are usually device drivers.

Syntax

insmod [-fkmpsvxX][-o <module name>][module file][symbol name = symbol value]

Parameter Description

  • -f Do not check whether the current kernel version is consistent with the kernel version when the module is compiled, and force the module to be loaded.
  • -k Set the module to be automatically unloaded.
  • -m Output the loading information of the module.
  • -o<module name> Specify the module name, which can be used as the filename of the module file.
  • -p Test whether the module can be loaded into the kernel correctly.
  • -s Record all information in the system log file.
  • -v Display detailed information during execution.
  • -x Do not export the external symbols of the module.
  • -X Export all external symbols of the module, this is the preset.

Online Examples

Load Module

# insmod led.o 
//Load Modules into Kernel

Linux Command大全