Re: SIGKILL and a sleeping kernel module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 19, 2013 at 7:00 PM, Kevin Wilson <wkevils@xxxxxxxxx> 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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux