From: Johann Obermayr <johann.obermayr@sigmatek.at>
To: Xenomai@xenomai.org
Subject: Re: [Xenomai] how to force task switch to primary mode
Date: Wed, 25 Nov 2015 18:40:34 +0100 [thread overview]
Message-ID: <5655F292.7080209@sigmatek.at> (raw)
In-Reply-To: <trinity-1831e513-92b7-4257-8f4e-a09952d12ad0-1448472034310@3capp-webde-bap53>
Hello,
Am 25.11.2015 um 18:20 schrieb JK.Behnke@web.de:
> 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?
>
> Would I have to change the rtdm driver, so xenomai performs the mode
> switch automatically?
>
> Thanks in advance for any hint.
> Jochen
> _______________________________________________
> Xenomai mailing list
> Xenomai@xenomai.org
> http://xenomai.org/mailman/listinfo/xenomai
>
in the file API.CHANGES:
2.5.5 -> 2.6.0
* rt_task_set_mode() does not support the T_PRIMARY bit
anymore; the latter has been replaced by T_CONFORMING, which
is allowed in the setmask only, and only effective for
real-time shadows.
In other words,
- rt_task_set_mode(clrmask, setmask=T_PRIMARY, &oldmode)
becomes:
rt_task_set_mode(clrmask, setmask=T_CONFORMING, &oldmode),
forcing primary mode only for SCHED_FIFO Xenomai threads
only. Nop otherwise (i.e. a non real-time shadow remains
in relaxed mode after the syscall has returned, since this
is its conforming runtime mode).
- rt_task_set_mode(clrmask=T_CONFORMING, setmask, &oldmode)
always begets -EINVAL.
Regards
Johann
next prev parent reply other threads:[~2015-11-25 17:40 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 [this message]
2015-11-28 11:31 ` 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=5655F292.7080209@sigmatek.at \
--to=johann.obermayr@sigmatek.at \
--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.