Lines Matching +full:timeout +full:- +full:period
4 * SPDX-License-Identifier: Apache-2.0
72 /* Nothing to do, kernel-side data structures are initialized at in sys_mutex_init()
78 k_timeout_t timeout);
87 * a timeout occurs.
93 * @param timeout Waiting period to lock the mutex,
97 * @retval -EBUSY Returned without waiting.
98 * @retval -EAGAIN Waiting period timed out.
99 * @retval -EACCES Caller has no access to provided mutex address
100 * @retval -EINVAL Provided mutex not recognized by the kernel
102 static inline int sys_mutex_lock(struct sys_mutex *mutex, k_timeout_t timeout) in sys_mutex_lock() argument
105 return z_sys_mutex_kernel_lock(mutex, timeout); in sys_mutex_lock()
120 * @retval -EACCES Caller has no access to provided mutex address
121 * @retval -EINVAL Provided mutex not recognized by the kernel or mutex wasn't
123 * @retval -EPERM Caller does not own the mutex
148 k_mutex_init(&mutex->kernel_mutex);
151 static inline int sys_mutex_lock(struct sys_mutex *mutex, k_timeout_t timeout)
153 return k_mutex_lock(&mutex->kernel_mutex, timeout);
158 return k_mutex_unlock(&mutex->kernel_mutex);