# kmod

Source: [https://docs.qualcomm.com/doc/80-41102-4/topic/kmod.html](https://docs.qualcomm.com/doc/80-41102-4/topic/kmod.html)

The `kmod` tool is used to load and unload kernel modules. This command can only work with modules that have been built into the Legato Runtime Environment on your target.

Kernel modules are able to be added through the Legato build system by bundling the kernel module with an [Kernel Module Definition .mdef](https://docs.qualcomm.com/bundle/resource/topics/80-41102-3_21528/def_files_mdef.html) into a Legato System.

## Usage

    Load/Unload a Legato bundled kernel module.
     
      Usage:
     
      To load a module:
     
          kmod load <moduleName>
     
      To unload a module:
     
          kmod unload <moduleName>Copy to clipboard

**Parent Topic:** [Target Tools](https://docs.qualcomm.com/doc/80-41102-4/topic/Target-Tools.html)

Last Published: Jan 13, 2025

[Previous Topic
cm](https://docs.qualcomm.com/bundle/publicresource/80-41102-4/topics/cm.md) [Next Topic
config](https://docs.qualcomm.com/bundle/publicresource/80-41102-4/topics/config.md)