[Xenomai] rt_task_sleep returned -EPERM
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
> see below
> 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.
More information about the Xenomai