From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Steve Deiters <SteveDeiters@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Killing Xenomai task on kernel shutdown
Date: Mon, 16 Nov 2009 17:50:23 +0100 [thread overview]
Message-ID: <4B0182CF.8070601@domain.hid> (raw)
In-Reply-To: <181804936ABC2349BE503168465576460CBA4A79@domain.hid>
Steve Deiters wrote:
> Are Xenomai tasks supposed to outlive the kernel? I have a Xenomai task
> that continues to run after the kernel is shut down.
>
> I have a PowerPC board which has an external watchdog. To keep this
> happy I have a periodic Xenomai task that I create early in the kernel
> startup with an initcall. However, when the kernel shuts down I would
> like to stop/delete the task so that the watchdog will restart the
> processor. Right now it seems that the task continues to run after
> kernel shutdown. If nothing else I can just manually stop it on shutdown.
>
> I'm not sure if there's a way to hook into the kernel shutdown. I have
> found the exitcall macros, but they seem to be only used for module
> unloading and do not seem to be called on a regular shutdown. The
> initcall is in a board specific startup file. If possible, I'd like to
> keep the task deletion also in the same file. I just do not know if
> there is a hook available for this.
What version of xenomai are you running?
--
Gilles
next prev parent reply other threads:[~2009-11-16 16:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-16 15:22 [Xenomai-help] Killing Xenomai task on kernel shutdown Steve Deiters
2009-11-16 16:50 ` Gilles Chanteperdrix [this message]
2009-11-16 16:57 ` Steve Deiters
2009-11-16 17:11 ` Philippe Gerum
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=4B0182CF.8070601@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=SteveDeiters@domain.hid \
--cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.