All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] q on rt_task_self() and mode switching
@ 2013-07-08 13:23 Michael Haberler
  2013-07-08 13:37 ` Philippe Gerum
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Haberler @ 2013-07-08 13:23 UTC (permalink / raw)
  To: xenomai@xenomai.org

if a userland RT thread gets modeswitched, the SIGXCPU handler obviously still executes in the RT domain, at least rt_task_self() returns a valid task descriptor - fine.

If a kernel RT thread misses the release point, it seems the thread is immediately switched to linux scheduling - or at least rt_task_self() returns NULL in this scenario:

int result =  rt_task_wait_period(&overruns);
    switch (result) {

    case -ETIMEDOUT: // release point was missed
	task = rt_task_self(); // this returns NULL


not a big thing - I just would like to get at the thread name for error message purposes; any way to do this?

- Michael






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

end of thread, other threads:[~2013-07-08 14:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-08 13:23 [Xenomai] q on rt_task_self() and mode switching Michael Haberler
2013-07-08 13:37 ` Philippe Gerum
2013-07-08 13:45   ` Michael Haberler
2013-07-08 13:55     ` Philippe Gerum
2013-07-08 14:03       ` Michael Haberler

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.