All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Kisdaroczi <kisda@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-core] rt_task_spawn with NULL name and pascal linking
Date: Sun, 8 Jan 2006 15:47:23 +0100	[thread overview]
Message-ID: <200601081547.29370.kisda@domain.hid> (raw)
In-Reply-To: <43988C40.3070003@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 1556 bytes --]

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:
> 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?


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2006-01-08 14:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-08 19:40 [Xenomai-core] anonymous rt_tasks in userspace / registry dependencies Jan Kiszka
2006-01-08 14:47 ` Stefan Kisdaroczi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200601081547.29370.kisda@domain.hid \
    --to=kisda@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.