All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Pedro Queiros <pqueiros@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] turn an rt_task back to linux user space
Date: Thu, 04 Jun 2009 00:57:39 +0200	[thread overview]
Message-ID: <4A26FFE3.7070009@domain.hid> (raw)
In-Reply-To: <4A26B6E7.9060201@domain.hid>

Gilles Chanteperdrix wrote:
> Pedro Queiros wrote:
>> Hi,
>> I would like to know if the is any way to turn a xenomai task, which
>> was shadowed from a linux thread with the rt_task_shadow(), back to
>> the linux user space (kill the rt_task and continue the linux thread
>> execution after that).
>> I tried the function rt_task_delete() but it ends the rt_task and
>> exits the linux thread without returning to Linux user space.
> 
> In theory, it would be possible, however it has not been implemented and
> is not an easy task, and is not in an urgent position on the todo list.
> So, in short, you will have to find another way (you can for instance,
> pthread_create a new thread from the real-time task context, right
> before it dies, the new thread doing the task you wanted to do after
> killing it).

You can also set the priority of the rt task to 0, this will give it a
lower priority than any other real-time task, and may achieve what you
are looking for.

-- 
					    Gilles.


      reply	other threads:[~2009-06-03 22:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-03 16:43 [Xenomai-help] turn an rt_task back to linux user space Pedro Queiros
2009-06-03 17:46 ` Gilles Chanteperdrix
2009-06-03 22:57   ` Gilles Chanteperdrix [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=4A26FFE3.7070009@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=pqueiros@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.