On 10/19/2013 09:54 PM, ali hagigat wrote:
> Please consider if some Native real time objects are created like
> “alarm”, by rt_alarm_create() and a real time task by
> rt_task_create() and some other objects inside a real time Xenomai
> task or inside a regular Linux task and the task ends and finishes
> without deleting those objects explicitly.
>
> 1) Will those objects be deleted automatically? Will their name be
> removed from registry and their descriptors are removed from the
> system heap automatically?
>
> 2) If no why when I create an “alarm” object , I can see its name in
> /proc/xenomai/timerstat/master and when the task finishes , the name
> disappears.
>
> 3) If yes, when a task ends, where (what function) it will return to?
Automatic cleanup happens in kernel-space, in the __shadow_eventcb
function, in file ksrc/skins/native/syscall.c.
--
Gilles.
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai