From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: tstratman@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Bottom half task scheduling
Date: Sat, 11 Sep 2010 22:26:08 +0200 [thread overview]
Message-ID: <4C8BE5E0.7050808@domain.hid> (raw)
In-Reply-To: <7301cc886b22b37fcbc8cda61c515d07.squirrel@domain.hid>
Travis Stratman wrote:
> Hello,
>
> I am writing a Xenomai driver with an interrupt that must trigger a
> complex series of hardware accesses that may not be atomic (i.e. waiting
> for DMA to complete). I'd like to move this section to a bottom half. In a
> Linux driver I would use a workqueue but I haven't been able to determine
> what the preferred method would be in Xenomai. All of the task creation
> API that I have considered cannot be called from an interrupt handler as
> they may reschedule.
>
> Can anyone point me to some documentation or example that covers this? Any
> pointers would be appreciated.
You can use a kernel thread, created with rtdm_task_init:
http://www.xenomai.org/documentation/xenomai-2.5/html/api/group__rtdmtask.html#g44b0701b6c28fa8035711f800fdcd371
--
Gilles.
next prev parent reply other threads:[~2010-09-11 20:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-11 20:08 [Xenomai-help] Bottom half task scheduling Travis Stratman
2010-09-11 20:26 ` Gilles Chanteperdrix [this message]
2010-09-12 2:49 ` Travis Stratman
2010-09-12 8:53 ` Jan Kiszka
2010-09-12 13:42 ` Travis Stratman
2010-09-12 13:48 ` Jan Kiszka
2010-09-12 14:13 ` Travis Stratman
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=4C8BE5E0.7050808@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=tstratman@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.