docs: Add missing retval for sys_mutex_unlock()
Should return 0 if mutex is unlocked, like k_mutex_unlock() Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
This commit is contained in:
parent
94f88e502f
commit
fd6737ebc4
1 changed files with 1 additions and 0 deletions
|
@ -118,6 +118,7 @@ static inline int sys_mutex_lock(struct sys_mutex *mutex, k_timeout_t timeout)
|
||||||
* thread.
|
* thread.
|
||||||
*
|
*
|
||||||
* @param mutex Address of the mutex, which may reside in user memory
|
* @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 -EACCES Caller has no access to provided mutex address
|
||||||
* @retval -EINVAL Provided mutex not recognized by the kernel or mutex wasn't
|
* @retval -EINVAL Provided mutex not recognized by the kernel or mutex wasn't
|
||||||
* locked
|
* locked
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue