[Xenomai] rt_task_sleep returned -EPERM

Philippe Gerum rpm at xenomai.org
Thu Mar 2 18:53:12 CET 2017


On 03/02/2017 03:53 PM, Wolfgang Netbal wrote:
> 
> I am calling function rt_task_sleep and the returncode is -EPERM
> In the xenomai api I found that this is returned from a task that cannot
> sleep
> see below
> http://xenomai.org/documentation/xenomai-2.6/html/api/group__task.html#gad5225e5fb8d583fbdfa5299f322b8366
> 
> 
> I can exclude that I am in an interrupt or a non-realtime because all my
> tasks are shadowed.
> But how can I have a scheduler locked ?
> 

No, the only plausible reason is really that the calling task is not a
Xenomai task. You may want to double-check this; if
CONFIG_XENO_OPT_DEBUG_NUCLEUS is enabled, you should see a warning
appearing in the kernel log when the call is denied.

-- 
Philippe.



More information about the Xenomai mailing list