All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: JK.Behnke@web.de
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] how to force task switch to primary mode
Date: Sat, 28 Nov 2015 12:31:45 +0100	[thread overview]
Message-ID: <20151128113145.GD10399@hermes.click-hack.org> (raw)
In-Reply-To: <trinity-1831e513-92b7-4257-8f4e-a09952d12ad0-1448472034310@3capp-webde-bap53>

On Wed, Nov 25, 2015 at 06:20:34PM +0100, JK.Behnke@web.de wrote:
>    Hello,
> 
>    an rtdm driver that I use requires the rt_dev_open call to be executed
>    in primary mode.
>    With xenomai 2.4.2 it was possible to switch to primary mode using
>    rt_task_set_mode(0, T_PRIMARY, NULL);
> 
>    Now I use xenomai 2.6.3, but I can't find the T_PRIMARY flag.
>    Is there an other alternative to force the task to switch to primary
>    mode?

I have not reacted earlier. But if you are porting old code to a new
version of Xenomai, there is absolutely no reason to use Xenomai
2.6.3. You could want to stay in the 2.x branch, because for
instance you are using Xenomai skins other than RTDM in kernel
space, but then the version of choice is Xenomai 2.6.4, not 2.6.3.
2.6.4 is API and even ABI compatible with 2.6.3, only with some
known bugs fixed, and support for more recent versions of Linux (and
yes, before you ask, Xenomai 2.6.4 can be used with any version of
Linux for which an I-pipe patch was released before its release,
even 2.4 kernels are supposed to work). 

You should also note that there may be another version of Xenomai
2.6, in order to release the current contents of its git tree, but
once this is done, there will be no plan for a next release. Xenomai
2.6 will be quasi-EOL. The current development branch is Xenomai 3,
so, starting now to use Xenomai 2.6 may not be the best idea.

-- 
					    Gilles.
https://click-hack.org


      parent reply	other threads:[~2015-11-28 11:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-25 17:20 [Xenomai] how to force task switch to primary mode JK.Behnke
2015-11-25 17:40 ` Johann Obermayr
2015-11-28 11:31 ` Gilles Chanteperdrix [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=20151128113145.GD10399@hermes.click-hack.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=JK.Behnke@web.de \
    --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.