Jean-Olivier Villemure wrote:
 > Hi,
 > 
 > I'm looking for the best to identify a Xenomai Task.
 > 
 > We are running multiple task inside kernel space and I need to identify
 > each of these task. Is there a sort of TaskID ? Otherwise I could look
 > at the address of the thread associated to one task, but is there a
 > better way?

It depends on the skin you are using,
- for posix skin, it is pthread_self()
- for native skin, it is rt_task_self()
- for vxworks skin, it is taskIdSelf()

The task Id of a new task is also returned by the task creation
services:
- pthread_create for the posix skin,
- rt_task_create for the native skin,
- taskSpawn for the vxworks skin.
When using taskInit with the vxworks skin, the task ID is the address of
the tcb passed as first argument.

-- 


                                            Gilles Chanteperdrix.

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to