From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Jean-Olivier Villemure <jean-olivier.villemure@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Best way to identify a Xenomai task
Date: Sun, 28 May 2006 20:51:41 +0200 [thread overview]
Message-ID: <17529.61757.805563.241802@domain.hid> (raw)
In-Reply-To: <4479EA8E.5090607@domain.hid>
Jean-Olivier Villemure wrote:
> Gilles Chanteperdrix wrote:
> > The task Id of a new task is also returned by the task creation
> > services:
> > - rt_task_create for the native skin
> >
> Thank you for your answer!
>
> Looking at the API, i see that rt_task_create returns:
> - 0 is returned upon success. Otherwise:
> - ENOMEM is returned if the system fails to get enough dynamic memory
> from the global real-time heap in order to create or register the task.
> - EEXIST is returned if the /name/ is already in use by some registered
> object.
> - EPERM is returned if this service was called from an asynchronous context.
>
> So according to this, no TaskId is returned by this function since 0 is
> returned upon success. But according to the EEXIST error, can we
> considerate that the name of the task is unique? So I could simply use
> this information to identify my tasks ?
Sorry, the task Id is not really returned by rt_task_create, the task Id
is the RT_TASK pointer passed as first argument.
--
Gilles Chanteperdrix.
prev parent reply other threads:[~2006-05-28 18:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-27 9:09 [Xenomai-help] Best way to identify a Xenomai task Jean-Olivier Villemure
2006-05-27 12:27 ` Gilles Chanteperdrix
2006-05-28 18:23 ` Jean-Olivier Villemure
2006-05-28 18:51 ` Gilles Chanteperdrix [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=17529.61757.805563.241802@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=jean-olivier.villemure@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.