From 00f9faf2de9c0437ca9734c0c02f2b03d4cac7c8 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 16 Apr 2021 15:22:04 +0200 Subject: rtems: Document rtems_semaphore_obtain() errors --- cpukit/include/rtems/rtems/sem.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpukit/include/rtems/rtems/sem.h') 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. * -- cgit v1.2.3