Error: removing '***': device or resource busy

Source: Internet
Author: User

 

Compile the first example helloworld in the experiment Linux driver, but the insmod installation is successful.

 

Dmsg | grep ** can also find the printed information of my module installation, but an error occurs during rmmod.

Error: removing 'helloworld': device or resource busy

Rmmod -- Force Delete is useless

 

The following are some common causes:

1. module_exit is not compiled as required;

2. Check that many low-level function names on stackflow are incorrect.

 

Finally, the following is a reference:

Http://forum.ubuntu.com.cn/viewtopic.php? F = 97 & t = 364431

 

The current GCC version of the current system does not match the GCC version of the kernel.

Since the previous = compilation of other code will change the GCC connection to version 4.4, but my ubuntu12.04 kernel GCC is 4.6

 

Ls-Al/usr/bin/GCC view GCC version

CAT/proc/version: displays the system information, including the GCC version of the kernel.

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.