All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean-Olivier Villemure <jean-olivier.villemure@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Best way to identify a Xenomai task
Date: Sun, 28 May 2006 20:23:10 +0200	[thread overview]
Message-ID: <4479EA8E.5090607@domain.hid> (raw)
In-Reply-To: <17528.17846.771613.406263@domain.hid>

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 ?

Thank you again :-)

Jean-Olivier


  reply	other threads:[~2006-05-28 18:23 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 [this message]
2006-05-28 18:51     ` Gilles Chanteperdrix

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=4479EA8E.5090607@domain.hid \
    --to=jean-olivier.villemure@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --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.