kernel threads and signals
- From: Maitre Bart <maitrebart@xxxxxxxxxx>
- Date: Fri, 07 Sep 2007 06:33:14 -0700
Let's say I have some legacy code from a device driver that starts a
kernel thread. Its main loop consists in waiting for some timeout or
event and then does some checks (or performs some action).
The wait is interruptible so that I need to verify if the kernel
thread got a signal pending: signal_pending(current) is the call I
use. However, is there any way I can figure out which signal(s) it
received? Then, how can a kernel thread handle any signal?
Are there any default signal(s) enabled when a kernel thread is
created? If so, how can I know which ones are enabled by default?
Thank in advance for your help.
- Prev by Date: Re: writing drivers using C++
- Next by Date: Re: writing drivers using C++
- Previous by thread: kernel module function arguments
- Next by thread: device driver wake up problem on Ubuntu 7.04 (kernel 2.6.20)