Skip to contentSkip to conversation

anonymous rt_tasks in userspace / registry dependencies

Xenomai-core Jan Kiszka 2 participants 2 messages Dec 8, 2005 – Jan 8, 2006

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Hi again,

some questions just came up for me:

1. Is it intended that tasks created with NULL name in userspace are not accessible even to the creator? I.e. don't they have to register anonymously in that case like semaphores e.g. do?

2. Doesn't render switching off XENO_OPT_NATIVE_REGISTRY the native skin unusable in userspace? If I got this correctly, all kernel objects are resolved from the user handle via the registry. If this is true, did I oversee some big fat warning sign somewhere...?

Jan

#1 lore raw

[Xenomai-core] rt_task_spawn with NULL name and pascal linking

Hi,

I needed a lot coffee and tobacco resources to find out that rt_task_spawn with NULL name will not work in userspace. The call failed with -3 (ESRCH?). This error seems not documented the xenomai api documention.

Using rt_task_create and rt_task_start it was rt_task_start that failed. I think this is related to Jans statement below.

As rt_task_spawn is a inline function and a combination of create/start, this can be confusing. I.e. rt_task_shadow works with NULL name and rt_task_spawn dont. At this point I should mention that im testing my pascal-translations of the xenomai native and rtdm headers, but i dont see that the problem should be related to it, I searched the problem a long time i this part ;-)

Some questions:
Im still using Xenomai 2.0.1, is this the problem ? Shouldnt this be documented better ?
Would it work if rt_task_spawn is a skincall?

pascal-related:
Is there a way to export the c-inline functions also in the libs, so that the complete api is exported ?
rt_task_spawn and some rt_*_unbind funtions are inlined.
Its not a problem to reprogram these in pascal, but for maintenance reasons it would be nice if i could link against these functions.

greetings
kisda

Am Donnerstag, 8. Dezember 2005 20.40 schrieb Jan Kiszka:

Quoted 7 lines

Hi again,

some questions just came up for me:

1. Is it intended that tasks created with NULL name in userspace are not accessible even to the creator? I.e. don't they have to register anonymously in that case like semaphores e.g. do?