summaryrefslogtreecommitdiffstats
path: root/doc/user/smp.t
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--doc/user/smp.t35
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/user/smp.t b/doc/user/smp.t
index bd840c1da6..abdd81cd77 100644
--- a/doc/user/smp.t
+++ b/doc/user/smp.t
@@ -18,6 +18,7 @@ The application level services currently provided are:
@item @code{rtems_get_current_processor} - Get current processor index
@item @code{rtems_scheduler_ident} - Get ID of a scheduler
@item @code{rtems_scheduler_get_processor_set} - Get processor set of a scheduler
+@item @code{rtems_task_get_scheduler} - Get scheduler of a task
@item @code{rtems_task_get_affinity} - Get task processor affinity
@item @code{rtems_task_set_affinity} - Set task processor affinity
@end itemize
@@ -374,6 +375,40 @@ cleared bit means the opposite.
None.
@c
+@c rtems_task_get_scheduler
+@c
+@page
+@subsection TASK_GET_SCHEDULER - Get scheduler of a task
+
+@subheading CALLING SEQUENCE:
+
+@ifset is-C
+@example
+rtems_status_code rtems_task_get_scheduler(
+ rtems_id id,
+ rtems_id *scheduler_id
+);
+@end example
+@end ifset
+
+@ifset is-Ada
+@end ifset
+
+@subheading DIRECTIVE STATUS CODES:
+
+@code{@value{RPREFIX}SUCCESSFUL} - successful operation@*
+@code{@value{RPREFIX}INVALID_ADDRESS} - @code{scheduler_id} is NULL@*
+@code{@value{RPREFIX}INVALID_ID} - invalid task id
+
+@subheading DESCRIPTION:
+
+Returns the scheduler identifier of a task in @code{scheduler_id}.
+
+@subheading NOTES:
+
+None.
+
+@c
@c rtems_task_get_affinity
@c
@page