Lines Matching defs:handle
24 struct file_handle *handle = NULL;
28 * support decoding of the file handle
40 handle = kzalloc(sizeof(struct file_handle) + f_handle.handle_bytes,
42 if (!handle)
45 /* convert handle size to multiple of sizeof(u32) */
48 /* we ask for a non connected handle */
50 (struct fid *)handle->f_handle,
52 handle->handle_type = retval;
53 /* convert handle size to bytes */
55 handle->handle_bytes = handle_bytes;
56 if ((handle->handle_bytes > f_handle.handle_bytes) ||
60 * But file system returned 255 always. So handle
64 * set the handle size to zero so we copy only
73 copy_to_user(ufh, handle,
76 kfree(handle);
81 * sys_name_to_handle_at: convert name to handle
83 * @name: name that should be converted to handle.
84 * @handle: resulting file handle
88 * @handle->handle_size indicate the space available to store the
89 * variable part of the file handle in bytes. If there is not
94 struct file_handle __user *, handle, int __user *, mnt_id,
109 err = do_sys_name_to_handle(&path, handle, mnt_id);
139 static int do_handle_to_path(int mountdirfd, struct file_handle *handle,
150 /* change the handle size to multiple of sizeof(u32) */
151 handle_dwords = handle->handle_bytes >> 2;
153 (struct fid *)handle->f_handle,
154 handle_dwords, handle->handle_type,
172 struct file_handle *handle = NULL;
175 * With handle we don't look at the execute bit on the
192 handle = kmalloc(sizeof(struct file_handle) + f_handle.handle_bytes,
194 if (!handle) {
198 /* copy the full handle */
199 *handle = f_handle;
200 if (copy_from_user(&handle->f_handle,
207 retval = do_handle_to_path(mountdirfd, handle, path);
210 kfree(handle);
246 * sys_open_by_handle_at: Open the file handle
248 * @handle: file handle to be opened
252 * of the mount point. file handle is decoded relative
257 struct file_handle __user *, handle,
265 ret = do_handle_open(mountdirfd, handle, flags);
275 struct file_handle __user *, handle, int, flags)
277 return do_handle_open(mountdirfd, handle, flags);