2006-09-26 08:52:31

by Janne Karhunen

[permalink] [raw]
Subject: kernel threads and signals

Hi,

I have a kernel module foo that uses kernel thread bar. With
signal_pending() I can easily check whether or not thread has
pending signals, but what's the correct way to check for the
specific signal number(s)?


--
// Janne


2006-09-26 21:50:41

by Jiri Slaby

[permalink] [raw]
Subject: Re: kernel threads and signals

Janne Karhunen wrote:
> Hi,
>
> I have a kernel module foo that uses kernel thread bar. With
> signal_pending() I can easily check whether or not thread has
> pending signals, but what's the correct way to check for the
> specific signal number(s)?

I am not pretty sure, but spinlock;dequeue_signal;spinunlock; should work.

regards,
--
http://www.fi.muni.cz/~xslaby/ Jiri Slaby
faculty of informatics, masaryk university, brno, cz
e-mail: jirislaby gmail com, gpg pubkey fingerprint:
B674 9967 0407 CE62 ACC8 22A0 32CC 55C3 39D4 7A7E