LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rmmod error (https://www.linuxquestions.org/questions/linux-newbie-8/rmmod-error-687642/)

shin2011 12-02-2008 01:17 AM

rmmod error
 
hi,

i have problem when i do 'rmmod'. It is always fail.
But, there is one clue for this. When i did insmod, there was error.
When i was shutdown system, module was removed.
But, i want to know there is other way to remove module?

Detailed log is below.
Thanks for reading this article.
Have a nice time in here ^^



root@localhost mod_test]#
[root@localhost mod_test]# insmod mod_test.ko
insmod: error inserting 'mod_test.ko': -1 File exists
[root@localhost mod_test]# rmmod mod_test.ko
ERROR: Module mod_test is in use
[root@localhost mod_test]# rmmod -f mod_test
ERROR: Removing 'mod_test': Device or resource busy
[root@localhost mod_test]# rmmod -w mod_test
ERROR: Removing 'mod_test': Device or resource busy
[root@localhost mod_test]#

Junior Hacker 12-02-2008 06:47 AM

You can't remove it because the system is still trying unsuccessfully to load the module. Probably because it can't be loaded.

shin2011 12-02-2008 07:42 PM

Thanks for reply
 
Quote:

Originally Posted by Junior Hacker (Post 3361684)
You can't remove it because the system is still trying unsuccessfully to load the module. Probably because it can't be loaded.


My code had problem and exception occured.
So, my module couldn't load successfully. Your advice is right.
Thanks for your advice.

Bye~~


All times are GMT -5. The time now is 10:41 AM.