All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [patch] RTDM abstraction for priority direction
@ 2005-10-24 21:19 Jan Kiszka
  2005-10-25  7:07 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2005-10-24 21:19 UTC (permalink / raw)
  To: xenomai-core


[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai-core] [patch] RTDM abstraction for priority direction
  2005-10-24 21:19 [Xenomai-core] [patch] RTDM abstraction for priority direction Jan Kiszka
@ 2005-10-25  7:07 ` Philippe Gerum
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2005-10-25  7:07 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

Jan Kiszka wrote:
> 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.

> 
> Jan
> 
> 
> ------------------------------------------------------------------------
> 
> 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)
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@domain.hid
> https://mail.gna.org/listinfo/xenomai-core


-- 

Philippe.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-25  7:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-24 21:19 [Xenomai-core] [patch] RTDM abstraction for priority direction Jan Kiszka
2005-10-25  7:07 ` Philippe Gerum

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.