summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/rtems/tasks.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-24 14:06:16 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-03-03 07:09:59 +0100
commit38736c69f84a07838dc18f7357ce5f14e555c860 (patch)
treeab728b5ec5a65d73062cc3917c97e31ffbb3153a /cpukit/include/rtems/rtems/tasks.h
parentdtc: Update VERSION (diff)
downloadrtems-38736c69f84a07838dc18f7357ce5f14e555c860.tar.bz2
rtems: Add rtems_scheduler_map_priority_to_posix()
Update #3881.
Diffstat (limited to '')
-rw-r--r--cpukit/include/rtems/rtems/tasks.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/cpukit/include/rtems/rtems/tasks.h b/cpukit/include/rtems/rtems/tasks.h
index 307b1b13aa..f92a2b2ad6 100644
--- a/cpukit/include/rtems/rtems/tasks.h
+++ b/cpukit/include/rtems/rtems/tasks.h
@@ -736,6 +736,24 @@ rtems_status_code rtems_scheduler_get_maximum_priority(
rtems_task_priority *priority
);
+/**
+ * @brief Map a task priority to the corresponding POSIX thread priority.
+ *
+ * @param scheduler_id Identifier of the scheduler instance.
+ * @param priority The task priority to map.
+ * @param[out] posix_priority Pointer to a POSIX thread priority value.
+ *
+ * @retval RTEMS_SUCCESSFUL Successful operation.
+ * @retval RTEMS_INVALID_ADDRESS The @a posix_priority parameter is @c NULL.
+ * @retval RTEMS_INVALID_ID Invalid scheduler instance identifier.
+ * @retval RTEMS_INVALID_PRIORITY Invalid task priority.
+ */
+rtems_status_code rtems_scheduler_map_priority_to_posix(
+ rtems_id scheduler_id,
+ rtems_task_priority priority,
+ int *posix_priority
+);
+
/**@}*/
#ifdef __cplusplus