All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Freyder <steve@freyder.net>
To: Pierre FICHEUX <pierre.ficheux@smile.fr>
Cc: xenomai <xenomai@xenomai.org>
Subject: Re: rt_task_inquire() equivalent for POSIX ?
Date: Thu, 7 Nov 2019 02:04:12 -0600	[thread overview]
Message-ID: <5DC3CFFC.4060701@freyder.net> (raw)
In-Reply-To: <CAFc1U0spXP+BXnLFspsBmOo9opGcFRUwDVoivLMvxJiBMwY_mA@mail.gmail.com>

On 11/6/2019 3:04 PM, Pierre FICHEUX via Xenomai wrote:
> Hi,
>
> Is there a way to get the Xenomai thread "pid" with POSIX API ? I didn't
> see anything in the "thread management" section.
>
> thx
>
Hi,

This file:

https://xenomai.org/documentation/xenomai-3/pdf/xeno3prm.pdf

makes several references to pthread_self() which implies that's the way 
to do what you are looking for here.

However (to your point), it doesn't explicitly document (in section 6.60 
Thread management) pthread_self() itself, whereas this file:

https://xenomai.org/documentation/xenomai-2.6/pdf/posix-api.pdf

in section 3.12.3 documents pthread_self() along with pthread_create() 
and the other "POSIX thread management" functions.

Perhaps when the 3.0 documentation was written, there was a decision 
made to not document any of the "standard POSIX thread management" 
functions unless there was also an RT variant of the function (sitting 
behind a wrapper) which had behaviour beyond what one could expect to 
find in the standard (non RT) POSIX documentation.  Perhaps there's a 
statement to that effect somewhere in the Xenomai-3 documentation, and 
if not, maybe there should be.

Regards,
Steve



      parent reply	other threads:[~2019-11-07  8:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-06 21:04 rt_task_inquire() equivalent for POSIX ? Pierre FICHEUX
2019-11-07  0:20 ` Lowell Gilbert
2019-11-07  5:47   ` Pierre FICHEUX
2019-11-07  7:56     ` Julien Blanc
2019-11-07  8:44       ` Philippe Gerum
2019-11-07  9:03         ` Pierre FICHEUX
2019-11-07  8:04 ` Steve Freyder [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=5DC3CFFC.4060701@freyder.net \
    --to=steve@freyder.net \
    --cc=pierre.ficheux@smile.fr \
    --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.