On 04/14/2013 12:41 AM, alex alex wrote:
> linux kernel : 3.2.21
> xenomai version : 2.6.2.1
> arch: x86
>
> In fact, I base on the cookie of the "rt_task_add_hook" function to
> retrieve the descriptor address of the task which has been switched or
> started.
> And I guess that if the returned name is ROOT it's means that either the
> task is switched to secondary mode or it's another linux task and if the
> retuned name isn't ROOT it mean that it's a task in the xenomai scheduler.
Yes, but as I told you ROOT does not necessarily means that a real-time
thread is running in secondary mode.
Also, as I also told you, if you want why a thread switches to secondary
mode, see examples/sigdebug.c
I do not intend to run your example and understand what it does. The way
you try to understand what happens is too indirect and convoluted.
There are simple ways in the application itself, you do not need a
kernel module and a switch hook.
--
Gilles.
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai