public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* kernel threads and signals
@ 2006-09-26  8:52 Janne Karhunen
  2006-09-26 21:50 ` Jiri Slaby
  0 siblings, 1 reply; 2+ messages in thread
From: Janne Karhunen @ 2006-09-26  8:52 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: kernel threads and signals
  2006-09-26  8:52 kernel threads and signals Janne Karhunen
@ 2006-09-26 21:50 ` Jiri Slaby
  0 siblings, 0 replies; 2+ messages in thread
From: Jiri Slaby @ 2006-09-26 21:50 UTC (permalink / raw)
  To: Janne Karhunen; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-26 21:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-26  8:52 kernel threads and signals Janne Karhunen
2006-09-26 21:50 ` Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox