Lines Matching refs:lock
34 struct k_mutex lock; member
55 .lock = Z_MUTEX_INITIALIZER(fdtable[0].lock),
62 .lock = Z_MUTEX_INITIALIZER(fdtable[1].lock),
69 .lock = Z_MUTEX_INITIALIZER(fdtable[2].lock),
151 ref_lock = (struct k_mutex)Z_MUTEX_INITIALIZER(fdtable[fd].lock); in fdtable_fd_is_initialized()
152 if (memcmp(&ref_lock, &fdtable[fd].lock, sizeof(ref_lock)) != 0) { in fdtable_fd_is_initialized()
197 bool zvfs_get_obj_lock_and_cond(void *obj, const struct fd_op_vtable *vtable, struct k_mutex **lock, in zvfs_get_obj_lock_and_cond() argument
210 if (lock) { in zvfs_get_obj_lock_and_cond()
211 *lock = &entry->lock; in zvfs_get_obj_lock_and_cond()
222 struct k_mutex **lock) in zvfs_get_fd_obj_and_vtable() argument
233 if (lock != NULL) { in zvfs_get_fd_obj_and_vtable()
234 *lock = &entry->lock; in zvfs_get_fd_obj_and_vtable()
252 k_mutex_init(&fdtable[fd].lock); in zvfs_reserve_fd()
284 &fdtable[fd].lock); in zvfs_finalize_typed_fd()
326 (void)k_mutex_lock(&fdtable[fd].lock, K_FOREVER); in zvfs_rw()
366 k_mutex_unlock(&fdtable[fd].lock); in zvfs_rw()
389 (void)k_mutex_lock(&fdtable[fd].lock, K_FOREVER); in zvfs_close()
401 k_mutex_unlock(&fdtable[fd].lock); in zvfs_close()
454 (void)k_mutex_lock(&fdtable[fd].lock, K_FOREVER); in zvfs_lseek_wrap()
470 k_mutex_unlock(&fdtable[fd].lock); in zvfs_lseek_wrap()
505 (void)k_mutex_lock(&fdtable[fd].lock, K_FOREVER); in zvfs_ftruncate_wrap()
509 k_mutex_unlock(&fdtable[fd].lock); in zvfs_ftruncate_wrap()