summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-05-20 10:03:35 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-05-20 10:03:35 +0200
commite5274df1d958a3252dcf3b56b4330047aea552fa (patch)
treeddc5f413ad54c7d73097c8cef6e6128463ee86d1 /cpukit/rtems
parentscore: SMP scheduler support documentation (diff)
downloadrtems-e5274df1d958a3252dcf3b56b4330047aea552fa.tar.bz2
rtems: Clarify task set/get scheduler parameters
Diffstat (limited to 'cpukit/rtems')
-rw-r--r--cpukit/rtems/include/rtems/rtems/tasks.h12
-rw-r--r--cpukit/rtems/src/taskgetscheduler.c4
-rw-r--r--cpukit/rtems/src/tasksetscheduler.c4
3 files changed, 10 insertions, 10 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/tasks.h b/cpukit/rtems/include/rtems/rtems/tasks.h
index a14e865ada..76653fd7c4 100644
--- a/cpukit/rtems/include/rtems/rtems/tasks.h
+++ b/cpukit/rtems/include/rtems/rtems/tasks.h
@@ -544,8 +544,8 @@ rtems_status_code rtems_task_set_affinity(
/**
* @brief Gets the scheduler of a task.
*
- * @param[in] id Identifier of the task. Use @ref RTEMS_SELF to select the
- * executing task.
+ * @param[in] task_id Identifier of the task. Use @ref RTEMS_SELF to select
+ * the executing task.
* @param[out] scheduler_id Identifier of the scheduler.
*
* @retval RTEMS_SUCCESSFUL Successful operation.
@@ -553,7 +553,7 @@ rtems_status_code rtems_task_set_affinity(
* @retval RTEMS_INVALID_ID Invalid task identifier.
*/
rtems_status_code rtems_task_get_scheduler(
- rtems_id id,
+ rtems_id task_id,
rtems_id *scheduler_id
);
@@ -563,8 +563,8 @@ rtems_status_code rtems_task_get_scheduler(
* The scheduler of a task is initialized to the scheduler of the task that
* created it.
*
- * @param[in] id Identifier of the task. Use @ref RTEMS_SELF to select the
- * executing task.
+ * @param[in] task_id Identifier of the task. Use @ref RTEMS_SELF to select
+ * the executing task.
* @param[in] scheduler_id Identifier of the scheduler.
*
* @retval RTEMS_SUCCESSFUL Successful operation.
@@ -573,7 +573,7 @@ rtems_status_code rtems_task_get_scheduler(
* @see rtems_scheduler_ident().
*/
rtems_status_code rtems_task_set_scheduler(
- rtems_id id,
+ rtems_id task_id,
rtems_id scheduler_id
);
diff --git a/cpukit/rtems/src/taskgetscheduler.c b/cpukit/rtems/src/taskgetscheduler.c
index 711109304d..47895a42e4 100644
--- a/cpukit/rtems/src/taskgetscheduler.c
+++ b/cpukit/rtems/src/taskgetscheduler.c
@@ -20,7 +20,7 @@
#include <rtems/score/schedulerimpl.h>
rtems_status_code rtems_task_get_scheduler(
- rtems_id id,
+ rtems_id task_id,
rtems_id *scheduler_id
)
{
@@ -31,7 +31,7 @@ rtems_status_code rtems_task_get_scheduler(
Objects_Locations location;
const Scheduler_Control *scheduler;
- the_thread = _Thread_Get( id, &location );
+ the_thread = _Thread_Get( task_id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
diff --git a/cpukit/rtems/src/tasksetscheduler.c b/cpukit/rtems/src/tasksetscheduler.c
index 30c7c6b3e2..e05553046d 100644
--- a/cpukit/rtems/src/tasksetscheduler.c
+++ b/cpukit/rtems/src/tasksetscheduler.c
@@ -20,7 +20,7 @@
#include <rtems/score/schedulerimpl.h>
rtems_status_code rtems_task_set_scheduler(
- rtems_id id,
+ rtems_id task_id,
rtems_id scheduler_id
)
{
@@ -31,7 +31,7 @@ rtems_status_code rtems_task_set_scheduler(
Thread_Control *the_thread;
Objects_Locations location;
- the_thread = _Thread_Get( id, &location );
+ the_thread = _Thread_Get( task_id, &location );
switch ( location ) {
case OBJECTS_LOCAL: