Skip to contentSkip to conversation

rt_task_catch and rt_hook in user space?

Xenomai-help Alessandro Pittaluga 2 participants 2 messages Mar 16, 2006 – Mar 17, 2006

lore
Share & tools
lore
#0 lore raw

Hi to everybody,

Anyone knows why the rt_task_catch and rt_hook is not available in the native library?

rt_task_catch seems to me the only clean way to define signal handlers on per-thread basis, but it is not included in the user space lib, although the doc states that the service should be available to user space tasks.

The hooks (registered on context switch) are very useful to calculate number of switches, consumed cpu time and so on..

Is there any plan to implement them in user space?

Many Thanks

Alessandro

#1 lore raw
Quoted 4 lines · Alessandro Pittaluga

Hi to everybody,

Anyone knows why the rt_task_catch and rt_hook is not available in the native library?

These routines are registering user callouts the nucleus invokes from kernel space, so we cannot make them available from user-space at the moment. Maybe this situation will improve when asynchronous calls of user-space routines are made available in the future, e.g. for dealing with real-time signals without resorting to switching to Linux first.

Quoted 3 lines

rt_task_catch seems to me the only clean way to define signal handlers on per-thread basis, but it is not included in the user space lib, although the doc states that the service should be available to user space tasks.

The doc is wrong regarding rt_task_catch(). Only rt_task_notify() is accessible from user-space.

Quoted 4 lines

The hooks (registered on context switch) are very useful to calculate number of switches, consumed cpu time and so on..

Is there any plan to implement them in user space?

Yes; no ETA though.

Quoted 11 lines

Many Thanks

Alessandro

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

Signature · 1 line
Philippe.