From: Michal Schmidt <xschmi00@stud.feec.vutbr.cz>
To: Kay Tiong Khoo <kaytiong@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: stopping a process during a timer interrupt
Date: Wed, 18 Oct 2006 16:30:57 +0200 [thread overview]
Message-ID: <45363AA1.1070604@stud.feec.vutbr.cz> (raw)
In-Reply-To: <d0bd1c10610170318x5dac0620l8842c43430ac33b@mail.gmail.com>
Kay Tiong Khoo skrev:
> 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.
In interrupt context there's no "current process" by definition.
Michal
next prev parent reply other threads:[~2006-10-18 14:31 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
2006-10-17 22:56 ` Hagen Paul Pfeifer
2006-10-19 3:38 ` Kay Tiong Khoo
2006-10-18 14:30 ` Michal Schmidt [this message]
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=45363AA1.1070604@stud.feec.vutbr.cz \
--to=xschmi00@stud.feec.vutbr.cz \
--cc=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®