From: "Kay Tiong Khoo" <kaytiong@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: stopping a process during a timer interrupt
Date: Tue, 17 Oct 2006 18:18:25 +0800 [thread overview]
Message-ID: <d0bd1c10610170318x5dac0620l8842c43430ac33b@mail.gmail.com> (raw)
In-Reply-To: <d0bd1c10610170311s3ef77226n1d645f3f1e178753@mail.gmail.com>
On a timer interrupt, I tried to stop the current process by changing
it's run state to TASK_STOPPED via set_current_state(TASK_STOPPED).
However, this results in a system hang.
I can't find a way to stop the current process during an interrupt
context. Does such code exist in the kernel? If not, how does one go
about implementing it from within a kernel module.
Thanks.
Kay Tiong
next parent reply other threads:[~2006-10-17 10:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <d0bd1c10610170311s3ef77226n1d645f3f1e178753@mail.gmail.com>
2006-10-17 10:18 ` Kay Tiong Khoo [this message]
2006-10-17 22:56 ` Hagen Paul Pfeifer
2006-10-19 3:38 ` Kay Tiong Khoo
2006-10-18 14:30 ` Michal Schmidt
2006-10-19 3:42 ` Kay Tiong Khoo
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=d0bd1c10610170318x5dac0620l8842c43430ac33b@mail.gmail.com \
--to=kaytiong@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
all inboxes | Powered by JetHome®