Lines Matching refs:handle
22 struct file_handle *handle = NULL; in do_sys_name_to_handle() local
38 handle = kmalloc(sizeof(struct file_handle) + f_handle.handle_bytes, in do_sys_name_to_handle()
40 if (!handle) in do_sys_name_to_handle()
48 (struct fid *)handle->f_handle, in do_sys_name_to_handle()
50 handle->handle_type = retval; in do_sys_name_to_handle()
53 handle->handle_bytes = handle_bytes; in do_sys_name_to_handle()
54 if ((handle->handle_bytes > f_handle.handle_bytes) || in do_sys_name_to_handle()
72 copy_to_user(ufh, handle, in do_sys_name_to_handle()
75 kfree(handle); in do_sys_name_to_handle()
93 struct file_handle __user *, handle, int __user *, mnt_id, in SYSCALL_DEFINE5()
108 err = do_sys_name_to_handle(&path, handle, mnt_id); in SYSCALL_DEFINE5()
138 static int do_handle_to_path(int mountdirfd, struct file_handle *handle, in do_handle_to_path() argument
150 handle_dwords = handle->handle_bytes >> 2; in do_handle_to_path()
152 (struct fid *)handle->f_handle, in do_handle_to_path()
153 handle_dwords, handle->handle_type, in do_handle_to_path()
171 struct file_handle *handle = NULL; in handle_to_path() local
191 handle = kmalloc(sizeof(struct file_handle) + f_handle.handle_bytes, in handle_to_path()
193 if (!handle) { in handle_to_path()
198 *handle = f_handle; in handle_to_path()
199 if (copy_from_user(&handle->f_handle, in handle_to_path()
206 retval = do_handle_to_path(mountdirfd, handle, path); in handle_to_path()
209 kfree(handle); in handle_to_path()
256 struct file_handle __user *, handle, in SYSCALL_DEFINE3()
264 ret = do_handle_open(mountdirfd, handle, flags); in SYSCALL_DEFINE3()