All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] turn an rt_task back to linux user space
@ 2009-06-03 16:43 Pedro Queiros
  2009-06-03 17:46 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: Pedro Queiros @ 2009-06-03 16:43 UTC (permalink / raw)
  To: xenomai

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.

Regards,

Pedro Queirós
Institute of System and Robotics (ISR)
Department of Electrical and Computer Engineering
University of Coimbra, Portugal.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-help] turn an rt_task back to linux user space
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Gilles Chanteperdrix @ 2009-06-03 17:46 UTC (permalink / raw)
  To: Pedro Queiros; +Cc: xenomai

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).

-- 
					    Gilles.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-help] turn an rt_task back to linux user space
  2009-06-03 17:46 ` Gilles Chanteperdrix
@ 2009-06-03 22:57   ` Gilles Chanteperdrix
  0 siblings, 0 replies; 3+ messages in thread
From: Gilles Chanteperdrix @ 2009-06-03 22:57 UTC (permalink / raw)
  To: Pedro Queiros; +Cc: xenomai

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-03 22:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.