From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4479EA8E.5090607@domain.hid> Date: Sun, 28 May 2006 20:23:10 +0200 From: Jean-Olivier Villemure MIME-Version: 1.0 Subject: Re: [Xenomai-help] Best way to identify a Xenomai task References: <44781751.30705@domain.hid> <17528.17846.771613.406263@domain.hid> In-Reply-To: <17528.17846.771613.406263@domain.hid> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai@xenomai.org 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