Searched refs:kernel_mutex (Results 1 – 2 of 2) sorted by relevance
35 struct k_mutex *kernel_mutex = get_k_mutex(mutex); in z_impl_z_sys_mutex_kernel_lock() local37 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() local59 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()
138 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);