Home
last modified time | relevance | path

Searched refs:file_handle (Results 1 – 10 of 10) sorted by relevance

/linux/tools/testing/selftests/pidfd/
H A Dpidfd_file_handle_test.c25 FIXTURE(file_handle) in FIXTURE() argument
40 FIXTURE_SETUP(file_handle) in FIXTURE_SETUP() argument
117 FIXTURE_TEARDOWN(file_handle) in FIXTURE_TEARDOWN() argument
144 TEST_F(file_handle, file_handle_same_pidns) in TEST_F() argument
147 struct file_handle *fh; in TEST_F()
151 fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F()
153 memset(fh, 0, sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F()
191 TEST_F(file_handle, file_handle_child_pidns) in TEST_F() argument
194 struct file_handle *fh; in TEST_F()
198 fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F()
[all …]
/linux/fs/
H A Dfhandle.c18 struct file_handle __user *ufh, in do_sys_name_to_handle()
23 struct file_handle f_handle; in do_sys_name_to_handle()
25 struct file_handle *handle = NULL; in do_sys_name_to_handle()
42 if (copy_from_user(&f_handle, ufh, sizeof(struct file_handle))) in do_sys_name_to_handle()
130 struct file_handle __user *, handle, void __user *, mnt_id, in SYSCALL_DEFINE5()
253 static int do_handle_to_path(struct file_handle *handle, struct path *path, in do_handle_to_path()
326 static int handle_to_path(int mountdirfd, struct file_handle __user *ufh, in handle_to_path()
330 struct file_handle f_handle; in handle_to_path()
331 struct file_handle *handle __free(kfree) = NULL; in handle_to_path()
335 if (copy_from_user(&f_handle, ufh, sizeof(struct file_handle))) in handle_to_path()
[all …]
/linux/samples/fanotify/
H A Dfs-monitor.c38 static void print_fh(struct file_handle *fh) in print_fh()
106 print_fh((struct file_handle *) &fid->handle); in handle_notifications()
/linux/tools/build/feature/
H A Dtest-file-handle.c10 struct file_handle fh; in main()
/linux/tools/testing/selftests/bpf/
H A Dcgroup_helpers.c460 struct file_handle *fhp, *fhp2; in get_cgroup_id_from_path()
477 fhsize = sizeof(struct file_handle) + fhp->handle_bytes; in get_cgroup_id_from_path()
/linux/tools/perf/util/
H A Dcgroup.c54 struct file_handle fh; in __read_cgroup_id()
H A Dsynthetic-events.c561 struct file_handle fh; in perf_event__synthesize_cgroup()
/linux/include/linux/
H A Dsyscalls.h65 struct file_handle;
892 struct file_handle __user *handle,
895 struct file_handle __user *handle,
H A Dfs.h1138 struct file_handle { struct
/linux/fs/notify/fanotify/
H A Dfanotify_user.c120 (sizeof(struct fanotify_event_info_fid) + sizeof(struct file_handle))
459 struct file_handle handle = { }; in copy_fid_info_to_user()