YouTip LogoYouTip

Linux Comm Insmod

Linux insmod Command |

-- Learning is not only about technology, but also about dreams!

Linux Tutorial

Shell Tutorial

Linux Reference Manual

Linux insmod Command

Linux Command Manual Linux Command Manual

The Linux insmod (short for "install module") command is used to load modules.

Many features in Linux are implemented as modules that are loaded into the kernel only when needed. This helps keep the kernel lean, improving efficiency and maintaining great flexibility. These loadable modules are typically device drivers.

Syntax

insmod [-o <module name>]

Parameter Description:

  • -f Force module loading without checking if the current kernel version matches the one used during module compilation.
  • -k Set the module to be automatically removable.
  • -m Output the module's loading information.
  • -o<module name> Specify the name of the module. The filename of the module file can be used.
  • -p Test if the module can be correctly loaded into the kernel.
  • -s Log all information in the system log file.
  • -v Display detailed information during execution.
  • -x Do not export the module's external symbols.
  • -X Export all external symbols of the module. This is the default.

Examples

Load a module:

# insmod led.o // Load the module into the kernel

Linux Command Manual Linux Command Manual

← File FlushFile Close β†’