Latest web development tutorials

Linux insmod command

Linux command Daquan Linux command Daquan

Linux insmod (install module) command is used to load module.

Linux has many functions is by way of the module, when needed to load kernel. So make the kernel more streamlined, thus improving efficiency and to maintain greater flexibility. Such loadable module, usually a device driver.

grammar

insmod [-fkmpsvxX][-o <模块名称>][模块文件][符号名称 = 符号值]

Parameter Description:

  • -f Do not check the current kernel version kernel compile-time version of the module are the same, to force the module to load.
  • -k module is set to automatically dismounted.
  • -m output module load information.
  • -o <module name> Specifies the name of the module, the module can use the file name.
  • -p test module is properly loaded kernel.
  • -s all information recorded in the system log file.
  • -v Displays detailed information when executed.
  • -x Do not export the external symbols of the module.
  • -X Export module all external symbols, this pre-set.

Examples

Load module

# insmod led.o 

//向内核加载模块

Linux command Daquan Linux command Daquan