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.