docs: Fix typo in mutex docs
-EACCESS should be -EACCES Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
This commit is contained in:
parent
1c9712aa2a
commit
d60a2e816f
1 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ __syscall int z_sys_mutex_kernel_unlock(struct sys_mutex *mutex);
|
||||||
* @retval 0 Mutex locked.
|
* @retval 0 Mutex locked.
|
||||||
* @retval -EBUSY Returned without waiting.
|
* @retval -EBUSY Returned without waiting.
|
||||||
* @retval -EAGAIN Waiting period timed out.
|
* @retval -EAGAIN Waiting period timed out.
|
||||||
* @retval -EACCESS 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
|
* @retval -EINVAL Provided mutex not recognized by the kernel
|
||||||
*/
|
*/
|
||||||
static inline int sys_mutex_lock(struct sys_mutex *mutex, k_timeout_t timeout)
|
static inline int sys_mutex_lock(struct sys_mutex *mutex, k_timeout_t timeout)
|
||||||
|
@ -118,7 +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 -EACCESS 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
|
||||||
* @retval -EPERM Caller does not own the mutex
|
* @retval -EPERM Caller does not own the mutex
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue