Lines Matching refs:handle
26 struct file_handle *handle = NULL; in do_sys_name_to_handle() local
49 handle = kzalloc_flex(*handle, f_handle, f_handle.handle_bytes); in do_sys_name_to_handle()
50 if (!handle) in do_sys_name_to_handle()
58 (struct fid *)handle->f_handle, in do_sys_name_to_handle()
60 handle->handle_type = retval; in do_sys_name_to_handle()
63 handle->handle_bytes = handle_bytes; in do_sys_name_to_handle()
64 if ((handle->handle_bytes > f_handle.handle_bytes) || in do_sys_name_to_handle()
89 handle->handle_type |= FILEID_IS_CONNECTABLE; in do_sys_name_to_handle()
91 handle->handle_type |= FILEID_IS_DIR; in do_sys_name_to_handle()
107 copy_to_user(ufh, handle, in do_sys_name_to_handle()
108 struct_size(handle, f_handle, handle_bytes))) in do_sys_name_to_handle()
110 kfree(handle); in do_sys_name_to_handle()
130 struct file_handle __user *, handle, void __user *, mnt_id, in SYSCALL_DEFINE5()
162 err = do_sys_name_to_handle(&path, handle, mnt_id, in SYSCALL_DEFINE5()
265 static int do_handle_to_path(struct file_handle *handle, struct path *path, in do_handle_to_path() argument
273 handle_dwords = handle->handle_bytes >> 2; in do_handle_to_path()
274 dentry = exportfs_decode_fh_raw(mnt, (struct fid *)handle->f_handle, in do_handle_to_path()
275 handle_dwords, handle->handle_type, in do_handle_to_path()
343 struct file_handle *handle __free(kfree) = NULL; in handle_to_path()
370 handle = kmalloc_flex(*handle, f_handle, f_handle.handle_bytes); in handle_to_path()
371 if (!handle) { in handle_to_path()
376 *handle = f_handle; in handle_to_path()
377 if (copy_from_user(&handle->f_handle, in handle_to_path()
396 handle->handle_type &= ~FILEID_USER_FLAGS_MASK; in handle_to_path()
397 retval = do_handle_to_path(handle, path, &ctx); in handle_to_path()
440 struct file_handle __user *, handle, in SYSCALL_DEFINE3()
448 ret = do_handle_open(mountdirfd, handle, flags); in SYSCALL_DEFINE3()
458 struct file_handle __user *, handle, int, flags) in COMPAT_SYSCALL_DEFINE3()
460 return do_handle_open(mountdirfd, handle, flags); in COMPAT_SYSCALL_DEFINE3()