summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-16 08:57:44 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-19 07:17:44 +0200
commit9bf0184a3e0773dc8f466479da548ff6243eff50 (patch)
tree17d627e22d54ce851c1ff5b6bfd5cb5eebcb576c
parent14c9029afe3e8e816985eeeac68b832024a7215b (diff)
downloadrtems-docs-9bf0184a3e0773dc8f466479da548ff6243eff50.tar.bz2
c-user: Document rtems_semaphore_obtain() errors
Update #3993.
-rw-r--r--c-user/semaphore/directives.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/c-user/semaphore/directives.rst b/c-user/semaphore/directives.rst
index 54f40a4..7c2a9c8 100644
--- a/c-user/semaphore/directives.rst
+++ b/c-user/semaphore/directives.rst
@@ -525,9 +525,17 @@ scheduler.
:c:macro:`RTEMS_INVALID_ID`
There was no semaphore associated with the identifier specified by ``id``.
+:c:macro:`RTEMS_NOT_DEFINED`
+ The semaphore uses a priority ceiling and there was no priority ceiling
+ defined for the :term:`home scheduler` of the calling task.
+
:c:macro:`RTEMS_UNSATISFIED`
The semaphore could not be obtained immediately.
+:c:macro:`RTEMS_INVALID_PRIORITY`
+ The semaphore uses a priority ceiling and the calling task had a current
+ priority less than the priority ceiling.
+
:c:macro:`RTEMS_INCORRECT_STATE`
Acquiring of the local, binary semaphore by the calling task would have
cased a deadlock.