All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Jeff Weber <jweber@domain.hid>
Cc: Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] 3rd party task mode switches and inquiries
Date: Mon, 09 Oct 2006 19:51:11 +0200	[thread overview]
Message-ID: <452A8C0F.2010001@domain.hid> (raw)
In-Reply-To: <1160411937.6268.14.camel@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 1324 bytes --]

Jeff Weber wrote:
> I have a need for task t1 to switch task t2 to and from primary mode,
> using the native API.  The rt_task_set_mode() API does not have an
> argument for the target task, and assumes the current task.  How can I
> initiate a 3rd party task mode switch?

Umm, could you explain why you need this? Sounds a bit weird to me.

We basically have this feature to support RTDM drivers that provide
mode-dependent (overloaded) services like resource allocation from Linux
vs. real-time pools. Normally, you should not need to touch the mode
explicitly, Xenomai will switch for you when required and feasible.

> 
> On a related note, the task info returned from rt_task_inquire() does
> not indicate task mode switches in the corresponding T_PRIMARY (0x200)
> bit, which is the bit used to command the mode switch.  However, a mode
> switch can be seen in the 0x100 status bit, which corresponds to the
> XNRELAX bit, (not in the public native/task.h API).  What's the best way
> to inquire if an arbitrary task is in primary or secondary mode?

I would say there is no official way yet, but I think we should create
one, likely by translating XNRELAX to the native-specific T_PRIMARY
flag. Should be trivial.

> 
> I am using Xenomai-2.2.0.
> 
> thanks,
> 	Jeff Weber
> 

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

  reply	other threads:[~2006-10-09 17:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-09 16:38 [Xenomai-help] 3rd party task mode switches and inquiries Jeff Weber
2006-10-09 17:51 ` Jan Kiszka [this message]
2006-10-09 18:00   ` Jan Kiszka
2006-10-09 18:14 ` Philippe Gerum

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=452A8C0F.2010001@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=jweber@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.