diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-04-26 11:00:24 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-04-27 19:40:12 +0200 |
commit | 4b7c77bce370d2ff88c9fb9036e5f3a3b1da9cb7 (patch) | |
tree | 64814323130a90a2ae790a5a787d8bd8989648e9 /cpukit/include/rtems | |
parent | Simplify get affinitiy directives (diff) | |
download | rtems-4b7c77bce370d2ff88c9fb9036e5f3a3b1da9cb7.tar.bz2 |
rtems: Change rtems_task_get_affinity() status
In case the processor set is not large enough to contain the processor
affinity set of the task return RTEMS_INVALID_SIZE instead of
RTEMS_INVALID_NUMBER. This is more in line with other directives since
the issue is related to the size of an object.
Close #4393.
Diffstat (limited to 'cpukit/include/rtems')
-rw-r--r-- | cpukit/include/rtems/score/schedulerimpl.h | 2 | ||||
-rw-r--r-- | cpukit/include/rtems/score/status.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/include/rtems/score/schedulerimpl.h b/cpukit/include/rtems/score/schedulerimpl.h index 397789372c..65c600b583 100644 --- a/cpukit/include/rtems/score/schedulerimpl.h +++ b/cpukit/include/rtems/score/schedulerimpl.h @@ -695,7 +695,7 @@ RTEMS_INLINE_ROUTINE const Processor_mask *_Scheduler_Get_processors( * * @retval STATUS_SUCCESSFUL The operation succeeded. * - * @retval STATUS_INVALID_NUMBER The processor set was too small. + * @retval STATUS_INVALID_SIZE The processor set was too small. */ Status_Control _Scheduler_Get_affinity( Thread_Control *the_thread, diff --git a/cpukit/include/rtems/score/status.h b/cpukit/include/rtems/score/status.h index ba3910d40d..236ae52d7b 100644 --- a/cpukit/include/rtems/score/status.h +++ b/cpukit/include/rtems/score/status.h @@ -118,6 +118,8 @@ typedef enum { STATUS_BUILD( STATUS_CLASSIC_INVALID_NUMBER, EINVAL ), STATUS_INVALID_PRIORITY = STATUS_BUILD( STATUS_CLASSIC_INVALID_PRIORITY, EINVAL ), + STATUS_INVALID_SIZE = + STATUS_BUILD( STATUS_CLASSIC_INVALID_SIZE, EINVAL ), STATUS_MAXIMUM_COUNT_EXCEEDED = STATUS_BUILD( STATUS_CLASSIC_UNSATISFIED, EOVERFLOW ), STATUS_MESSAGE_INVALID_SIZE = |