summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/rtems/sem.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-16 15:22:04 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-19 07:20:49 +0200
commit00f9faf2de9c0437ca9734c0c02f2b03d4cac7c8 (patch)
treed30a5b98f3714ecd16b3c5bfbda6c400914d1c95 /cpukit/include/rtems/rtems/sem.h
parentgrlib/genirq: Taking into account that it could be more than one ISR enabled/... (diff)
downloadrtems-00f9faf2de9c0437ca9734c0c02f2b03d4cac7c8.tar.bz2
rtems: Document rtems_semaphore_obtain() errors
Diffstat (limited to '')
-rw-r--r--cpukit/include/rtems/rtems/sem.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/include/rtems/rtems/sem.h b/cpukit/include/rtems/rtems/sem.h
index ec3b6c671a..22f5b3f491 100644
--- a/cpukit/include/rtems/rtems/sem.h
+++ b/cpukit/include/rtems/rtems/sem.h
@@ -468,8 +468,15 @@ rtems_status_code rtems_semaphore_delete( rtems_id id );
* @retval ::RTEMS_INVALID_ID There was no semaphore associated with the
* identifier specified by ``id``.
*
+ * @retval ::RTEMS_NOT_DEFINED The semaphore uses a priority ceiling and there
+ * was no priority ceiling defined for the home scheduler of the calling
+ * task.
+ *
* @retval ::RTEMS_UNSATISFIED The semaphore could not be obtained immediately.
*
+ * @retval ::RTEMS_INVALID_PRIORITY The semaphore uses a priority ceiling and
+ * the calling task had a current priority less than the priority ceiling.
+ *
* @retval ::RTEMS_INCORRECT_STATE Acquiring of the local, binary semaphore by
* the calling task would have cased a deadlock.
*