Lines Matching refs:handle
24 struct file_handle *handle = NULL; in do_sys_name_to_handle() local
40 handle = kzalloc(sizeof(struct file_handle) + f_handle.handle_bytes, in do_sys_name_to_handle()
42 if (!handle) in do_sys_name_to_handle()
50 (struct fid *)handle->f_handle, in do_sys_name_to_handle()
52 handle->handle_type = retval; in do_sys_name_to_handle()
55 handle->handle_bytes = handle_bytes; in do_sys_name_to_handle()
56 if ((handle->handle_bytes > f_handle.handle_bytes) || in do_sys_name_to_handle()
73 copy_to_user(ufh, handle, in do_sys_name_to_handle()
76 kfree(handle); in do_sys_name_to_handle()
94 struct file_handle __user *, handle, int __user *, mnt_id, in SYSCALL_DEFINE5()
109 err = do_sys_name_to_handle(&path, handle, mnt_id); in SYSCALL_DEFINE5()
139 static int do_handle_to_path(int mountdirfd, struct file_handle *handle, in do_handle_to_path() argument
151 handle_dwords = handle->handle_bytes >> 2; in do_handle_to_path()
153 (struct fid *)handle->f_handle, in do_handle_to_path()
154 handle_dwords, handle->handle_type, in do_handle_to_path()
172 struct file_handle *handle = NULL; in handle_to_path() local
192 handle = kmalloc(sizeof(struct file_handle) + f_handle.handle_bytes, in handle_to_path()
194 if (!handle) { in handle_to_path()
199 *handle = f_handle; in handle_to_path()
200 if (copy_from_user(&handle->f_handle, in handle_to_path()
207 retval = do_handle_to_path(mountdirfd, handle, path); in handle_to_path()
210 kfree(handle); in handle_to_path()
257 struct file_handle __user *, handle, in SYSCALL_DEFINE3()
265 ret = do_handle_open(mountdirfd, handle, flags); in SYSCALL_DEFINE3()
275 struct file_handle __user *, handle, int, flags) in COMPAT_SYSCALL_DEFINE3()
277 return do_handle_open(mountdirfd, handle, flags); in COMPAT_SYSCALL_DEFINE3()