Close #3881. --- c-user/scheduling_concepts.rst | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+)
diff --git a/c-user/scheduling_concepts.rst b/c-user/scheduling_concepts.rst index 4106d41..12316b7 100644 --- a/c-user/scheduling_concepts.rst +++ b/c-user/scheduling_concepts.rst @@ -40,6 +40,9 @@ The directives provided by the scheduler manager are: - rtems_scheduler_map_to_posix_priority_ - Map task priority to POSIX thread prority +- rtems_scheduler_map_from_posix_priority_ - Map POSIX thread priority to task + prority + - rtems_scheduler_get_processor_ - Get current processor index - rtems_scheduler_get_processor_maximum_ - Get processor maximum @@ -741,6 +744,43 @@ NOTES: \clearpage +.. _rtems_scheduler_map_from_posix_priority: + +SCHEDULER_MAP_TO_POSIX_PRIORITY - Map POSIX thread prority to task priority +--------------------------------------------------------------------------- + +CALLING SEQUENCE: + .. code-block:: c + + rtems_status_code rtems_scheduler_map_from_posix_priority( + rtems_id scheduler_id, + int posix_priority, + rtems_task_priority *priority + ); + +DIRECTIVE STATUS CODES: + .. list-table:: + :class: rtems-table + + * - ``RTEMS_SUCCESSFUL`` + - Successful operation. + * - ``RTEMS_INVALID_ADDRESS`` + - The ``priority`` parameter is ``NULL``. + * - ``RTEMS_INVALID_ID`` + - Invalid scheduler instance identifier. + * - ``RTEMS_INVALID_PRIORITY`` + - Invalid POSIX thread priority. + +DESCRIPTION: + Maps a POSIX thread priority to the corresponding task priority. + +NOTES: + None. + +.. raw:: latex + + \clearpage + .. _rtems_scheduler_get_processor: SCHEDULER_GET_PROCESSOR - Get current processor index -- 2.16.4 _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel