Lines Matching refs:handle
25 struct file_handle *handle = NULL; in do_sys_name_to_handle() local
48 handle = kzalloc(struct_size(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()
163 err = do_sys_name_to_handle(&path, handle, mnt_id, in SYSCALL_DEFINE5()
253 static int do_handle_to_path(struct file_handle *handle, struct path *path, in do_handle_to_path() argument
261 handle_dwords = handle->handle_bytes >> 2; in do_handle_to_path()
262 dentry = exportfs_decode_fh_raw(mnt, (struct fid *)handle->f_handle, in do_handle_to_path()
263 handle_dwords, handle->handle_type, in do_handle_to_path()
331 struct file_handle *handle __free(kfree) = NULL; in handle_to_path()
358 handle = kmalloc(struct_size(handle, f_handle, f_handle.handle_bytes), in handle_to_path()
360 if (!handle) { in handle_to_path()
365 *handle = f_handle; in handle_to_path()
366 if (copy_from_user(&handle->f_handle, in handle_to_path()
385 handle->handle_type &= ~FILEID_USER_FLAGS_MASK; in handle_to_path()
386 retval = do_handle_to_path(handle, path, &ctx); in handle_to_path()
433 struct file_handle __user *, handle, in SYSCALL_DEFINE3()
441 ret = do_handle_open(mountdirfd, handle, flags); in SYSCALL_DEFINE3()
451 struct file_handle __user *, handle, int, flags) in COMPAT_SYSCALL_DEFINE3()
453 return do_handle_open(mountdirfd, handle, flags); in COMPAT_SYSCALL_DEFINE3()