All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <kiszka@domain.hid>
To: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] [patch] RTDM abstraction for priority direction
Date: Mon, 24 Oct 2005 23:19:42 +0200	[thread overview]
Message-ID: <435D4FEE.10301@domain.hid> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 231 bytes --]

Hi,

it turned out that it is useful to abstract the priority
increment/decrement by one level at the RTDM layer - for systems that
use a different scheme compared to POSIX or Xenomai (so far only classic
RTAI). Please apply.

Jan

[-- Attachment #1.2: rtdm_raise_lower_prio.patch --]
[-- Type: text/x-patch, Size: 712 bytes --]

Index: skins/rtdm/rtdm_driver.h
===================================================================
--- skins/rtdm/rtdm_driver.h	(Revision 72)
+++ skins/rtdm/rtdm_driver.h	(Arbeitskopie)
@@ -831,8 +831,16 @@
 #define RTDM_TASK_HIGHEST_PRIORITY  XNCORE_HIGH_PRIO
 /** @} */

+/*!
+ * @anchor changetaskprio @name Task Priority Modification
+ * Raise or lower task priorities by one level
+ * @{ */
+#define RTDM_TASK_RAISE_PRIORITY    (+1)
+#define RTDM_TASK_LOWER_PRIORITY    (-1)
 /** @} */

+/** @} */
+
 static inline int rtdm_task_init(rtdm_task_t *task, const char *name,
                                  rtdm_task_proc_t task_proc, void *arg,
                                  int priority, __u64 period)

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

             reply	other threads:[~2005-10-24 21:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-24 21:19 Jan Kiszka [this message]
2005-10-25  7:07 ` [Xenomai-core] [patch] RTDM abstraction for priority direction 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=435D4FEE.10301@domain.hid \
    --to=kiszka@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.