From fd6737ebc450096d8bf3e6d13d6efc52168850dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Fri, 5 Mar 2021 20:35:09 +0000 Subject: [PATCH] docs: Add missing retval for sys_mutex_unlock() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Should return 0 if mutex is unlocked, like k_mutex_unlock() Signed-off-by: Guðni Már Gilbert --- include/sys/mutex.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/sys/mutex.h b/include/sys/mutex.h index 88b3e7a44e1..7a3d335ca6c 100644 --- a/include/sys/mutex.h +++ b/include/sys/mutex.h @@ -118,6 +118,7 @@ static inline int sys_mutex_lock(struct sys_mutex *mutex, k_timeout_t timeout) * thread. * * @param mutex Address of the mutex, which may reside in user memory + * @retval 0 Mutex unlocked * @retval -EACCES Caller has no access to provided mutex address * @retval -EINVAL Provided mutex not recognized by the kernel or mutex wasn't * locked