Skip to contentSkip to conversation

RTDM abstraction for priority direction

PATCH Applied Jan Kiszka 2 participants 2 messages Oct 24, 2005 – Oct 25, 2005

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 RTDM abstraction for priority direction

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

rtdm/rtdm_driver.h +8 -0
Index: skins/rtdm/rtdm_driver.h
===================================================================
@@ -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)
#1 lore raw
Quoted 6 lines · Jan Kiszka

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.

Applied, thanks.

Quoted 35 lines

Jan

------------------------------------------------------------------------

Index: skins/rtdm/rtdm_driver.h
===================================================================

rtdm/rtdm_driver.h +8 -1
@@ -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)
 
 
------------------------------------------------------------------------

_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Signature · 1 line
Philippe.