Home
last modified time | relevance | path

Searched refs:kernel_mutex (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.5.0/lib/os/
Dmutex.c35 struct k_mutex *kernel_mutex = get_k_mutex(mutex); in z_impl_z_sys_mutex_kernel_lock() local
37 if (kernel_mutex == NULL) { in z_impl_z_sys_mutex_kernel_lock()
41 return k_mutex_lock(kernel_mutex, timeout); in z_impl_z_sys_mutex_kernel_lock()
57 struct k_mutex *kernel_mutex = get_k_mutex(mutex); in z_impl_z_sys_mutex_kernel_unlock() local
59 if (kernel_mutex == NULL || kernel_mutex->lock_count == 0) { in z_impl_z_sys_mutex_kernel_unlock()
63 return k_mutex_unlock(kernel_mutex); in z_impl_z_sys_mutex_kernel_unlock()
/Zephyr-Core-3.5.0/include/zephyr/sys/
Dmutex.h138 struct k_mutex kernel_mutex;
143 .kernel_mutex = Z_MUTEX_INITIALIZER(name.kernel_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);