SIGKILL and a sleeping kernel module

Mulyadi Santosa mulyadi.santosa at gmail.com
Tue Feb 19 13:55:47 EST 2013


On Tue, Feb 19, 2013 at 7:00 PM, Kevin Wilson <wkevils at gmail.com> wrote:
> Hi,
> 1) changing to msleep_interruptible() did not change the situation.
> 2) What is strange is that I *do* see the printk messages
> of kernel_init/kernel_exit, but I do not see the printk messages
> in the thread function, thread_function() (also before the first
> mslee()/msleep_interruptible() ).
> And they are the same printk level; I also tried with
>  printk(KERN_ERR..
> in the thread_function(), but it did not help.


Please don't top post, ok :)

BTW, maybe you don't such message because your thread hasn't running yet.

IMHO you need to use kthread_run(). Kindly check this:
http://lxr.linux.no/linux+*/include/linux/kthread.h#L31


-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com



More information about the Kernelnewbies mailing list