Insmod: Load Module
Parameters:
-F does not check that the current kernel version is consistent with the kernel version at the time of module compilation, forcing the module to be loaded.
-K Sets the module to dismount automatically.
-M output module loading information.
-O < module name > Specifies the name of the module, which can be used with the file name of the module file.
Is the-P test module correctly loaded into the kernel.
-S records all information in the system log file.
-V displays detailed information when executed.
-X do not export the external symbols of the module.
-X sinks all external symbols of the module, which are pre-set.
Instance:
Insmod First_drv.ko
In addition to Insmod, there is also modprobe is the loading module, except that it loads a module, in conjunction with the load of the other modules that the module depends on. Reference: http://www.linuxso.com/command/insmod.html
Rmmod: Uninstalling the module
Parameters:
-a removes any modules that are now unnecessary.
Instance:
Rmmod First_drv
Lsmod: List modules that are currently loaded
Instance:
Lsmod
In addition to Lsmod can see, but also through the cat/proc/devices to see the loaded modules
Linux-insmod/rmmod/lsmod driver Module Related commands (10)