How Do You Load a Module into the Linux Kernel?

How Do You Load a Module into the Linux Kernel?
Contents

How Linux kernel modules are loaded?

Loadable kernel modules in Linux are loaded (and unloaded) by the modprobe command. They are located in /lib/modules or /usr/lib/modules and have had the extension . ko (“kernel object”) since version 2.6 (previous versions used the .o extension). The lsmod command lists the loaded kernel modules.

How do I install a Linux module?

Installing via modules via setup.py to your home directory

  1. Download and untar or unzip the module you would like to install.
  2. cd into the module directory that contains setup.py and run the install: python setup.py install –prefix=~
Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.