All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: NZG <ngustavson@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] killing a rt task and closing a rtdm fd
Date: Mon, 07 May 2007 11:16:41 +0200	[thread overview]
Message-ID: <463EEE79.9090409@domain.hid> (raw)
In-Reply-To: <200705041630.40004.ngustavson@domain.hid>

[-- 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 --]

      reply	other threads:[~2007-05-07  9:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=463EEE79.9090409@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=ngustavson@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.