Linux-insmod/rmmod/lsmod driver Module Related commands (10)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.