* [Xenomai-core] killing a rt task and closing a rtdm fd
@ 2007-05-04 21:30 NZG
2007-05-07 9:16 ` Jan Kiszka
0 siblings, 1 reply; 2+ messages in thread
From: NZG @ 2007-05-04 21:30 UTC (permalink / raw)
To: xenomai
I've got a user space app that starts a periodic real time task.
The periodic task opens an rtdm file descriptor and starts writing to it in a
loop.
At some point, due to user interaction, the task needs to be killed and the
file descriptor closed.
What's the easiest way to signal it to do so? Anyone have some example code
they can point at?
I looked through the native docs and the examples at
http://www.captain.at/xenomai.php
and
http://svn.gna.org/svn/xenomai/trunk/examples/rtdm/driver-api/
but they don't appear to address this.
The captains example uses a global variable, but this doesn't actually seem to
work.
I suspect the task is operating on a copied set of variables, so some sort of
message passing is going to be involved, but I don't want to slow down the
main task to wait for a message.
thank you,
NZG
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Xenomai-core] killing a rt task and closing a rtdm fd
2007-05-04 21:30 [Xenomai-core] killing a rt task and closing a rtdm fd NZG
@ 2007-05-07 9:16 ` Jan Kiszka
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2007-05-07 9:16 UTC (permalink / raw)
To: NZG; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 1045 bytes --]
NZG wrote:
> I've got a user space app that starts a periodic real time task.
> The periodic task opens an rtdm file descriptor and starts writing to it in a
> loop.
>
> At some point, due to user interaction, the task needs to be killed and the
> file descriptor closed.
>
> What's the easiest way to signal it to do so? Anyone have some example code
> they can point at?
>
> I looked through the native docs and the examples at
> http://www.captain.at/xenomai.php
> and
> http://svn.gna.org/svn/xenomai/trunk/examples/rtdm/driver-api/
>
> but they don't appear to address this.
>
> The captains example uses a global variable, but this doesn't actually seem to
> work.
>
> I suspect the task is operating on a copied set of variables, so some sort of
> message passing is going to be involved, but I don't want to slow down the
> main task to wait for a message.
>
Check examples under src/utils/can, src/testsuite/switchtest, or
irqbench. [And please post help requests on xenomai-help :)]
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-07 9:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-04 21:30 [Xenomai-core] killing a rt task and closing a rtdm fd NZG
2007-05-07 9:16 ` Jan Kiszka
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.