From: Jiri Slaby <jirislaby@gmail.com>
To: Janne Karhunen <janne.karhunen@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: kernel threads and signals
Date: Tue, 26 Sep 2006 23:50:40 +0200 [thread overview]
Message-ID: <4519A0B0.3030207@gmail.com> (raw)
In-Reply-To: <24c1515f0609260152j256e8473yf2e4d14e65222c67@mail.gmail.com>
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
prev parent reply other threads:[~2006-09-26 21:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-26 8:52 kernel threads and signals Janne Karhunen
2006-09-26 21:50 ` Jiri Slaby [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4519A0B0.3030207@gmail.com \
--to=jirislaby@gmail.com \
--cc=janne.karhunen@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox