Skip to contentSkip to conversation

native task status

Xenomai Tom Z 3 participants 3 messages Mar 24, 2013

lore
Share & tools
lore

Tom Z

author
#0 lore raw

Hi,

I create a rt_task in user space program by rt_task_create(), and in a kernel module I use use rt_task_inquire to get rt_task_info of this task during execution. I notice that rt_task_info:status of this task is 0x300180 during its execution, and if I call rt_task_suspend on it, the status is 0x300181. So where is the task status value defined? I examined nucleus/thread.h, and it seems there are numbers like 0x300180 or 0x300181.

Thanks,
Tom

#1 lore raw
Quoted 9 lines · Tom Z

Hi,

I create a rt_task in user space program by rt_task_create(), and in a kernel module I use use rt_task_inquire to get rt_task_info of this task during execution. I notice that rt_task_info:status of this task is 0x300180 during its execution, and if I call rt_task_suspend on it, the status is 0x300181. So where is the task status value defined? I examined nucleus/thread.h, and it seems there are numbers like 0x300180 or 0x300181.

Hi,

please configure your mail client to wrap lines.

The function rt_task_inquire is documented in xenomai doxygen documentation, available here:
http://www.xenomai.org/documentation/xenomai-2.6/html/api/group__task.html#ga53bad6acf5496f8008e594954507dce8

And on your disk after running "make install". From there you should be able to find the rtask_info::status field documentation.

Regards.

Signature · 1 line
                                                                Gilles.
#2 lore raw
In reply to Tom Z
Quoted 5 lines · Tom Z

Hi,

I create a rt_task in user space program by rt_task_create(), and in a kernel module I use use rt_task_inquire to get rt_task_info of this task during execution. I notice that rt_task_info:status of this task is 0x300180 during its execution, and if I call rt_task_suspend on it, the status is 0x300181. So where is the task status value defined? I examined nucleus/thread.h, and it seems there are numbers like 0x300180 or 0x300181.

This status is a bitmask. XNSUSP from include/nucleus/thread.h is set when the task is forcibly suspended.

Quoted 7 lines

Thanks,
Tom
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Signature · 1 line
Philippe.