Lines Matching +full:has +full:- +full:lock
4 * SPDX-License-Identifier: Apache-2.0
72 /* Nothing to do, kernel-side data structures are initialized at in sys_mutex_init()
83 * @brief Lock a mutex.
89 * A thread is permitted to lock a mutex it has already locked. The operation
90 * completes immediately and the lock count is increased by 1.
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
114 * The mutex cannot be claimed by another thread until it has been unlocked by
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);
153 return k_mutex_lock(&mutex->kernel_mutex, timeout);
158 return k_mutex_unlock(&mutex->kernel_mutex);