From: Németh Márton <nm127@fr...> - 2009-03-25 06:02:38
rohit verma wrote:
> I am trying to run nlsTest on 2.6.23 kernel.I am getting the following
> error when i try to insert the module in the kernel.
> *insmod: -1 Device or Resource Busy*
> Now, i change the major no from 253 to 260.
> I am unable to rmmod
> *ERROR: module nlsTest is in Use.*
> Can you pls help me out to run the test
Please read ltp/testcases/kernel/device-drivers/nls/README. There you can
find that the output of nlsTest.ko can be found in "dmesg".
The first error you get at insmod is maybe because the register_blkdev() function
returns error in test_init_module(). But any case the "dmesg" is your friend.
The "rmmod" is not working for you maybe because the nlsTest.ko executes a test
case which ends in "BUG: unable to handle kernel NULL pointer dereference at 00000000"
(at least it does on my computer on 2.6.28). If this happens then you will not able
to unload the nlsTest.ko module anymore, the best practice is to reboot the system
so you get a clean state again.
Please check the "dmesg" output. If you have further questions, please send "dmesg"