I am using one kernel thread in my module( it is LKM).
I have added some function pointers in kernel code those function pointers give control to our module whenever module inserted into kernel.
How can i protect code of our module thread code while running an application on machine
I have used lock_kernel() and spin_locks() but those doesn't work for me.
Could you please help me on this, thanks in advance..