All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: jean-olivier.villemure@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Best way to identify a Xenomai task
Date: Sat, 27 May 2006 14:27:34 +0200	[thread overview]
Message-ID: <17528.17846.771613.406263@domain.hid> (raw)
In-Reply-To: <44781751.30705@domain.hid>

Jean-Olivier Villemure wrote:
 > Hi,
 > 
 > I'm looking for the best to identify a Xenomai Task.
 > 
 > We are running multiple task inside kernel space and I need to identify
 > each of these task. Is there a sort of TaskID ? Otherwise I could look
 > at the address of the thread associated to one task, but is there a
 > better way?

It depends on the skin you are using,
- for posix skin, it is pthread_self()
- for native skin, it is rt_task_self()
- for vxworks skin, it is taskIdSelf()

The task Id of a new task is also returned by the task creation
services:
- pthread_create for the posix skin,
- rt_task_create for the native skin,
- taskSpawn for the vxworks skin.
When using taskInit with the vxworks skin, the task ID is the address of
the tcb passed as first argument.

-- 


					    Gilles Chanteperdrix.


  reply	other threads:[~2006-05-27 12:27 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 [this message]
2006-05-28 18:23   ` Jean-Olivier Villemure
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=17528.17846.771613.406263@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.