Searched refs:handle_bytes (Results 1 – 12 of 12) sorted by relevance
| /linux/fs/ |
| H A D | fhandle.c | 25 int handle_dwords, handle_bytes; in do_sys_name_to_handle() local 46 if (f_handle.handle_bytes > MAX_HANDLE_SZ) in do_sys_name_to_handle() 49 handle = kzalloc_flex(*handle, f_handle, f_handle.handle_bytes); in do_sys_name_to_handle() 54 handle_dwords = f_handle.handle_bytes >> 2; in do_sys_name_to_handle() 62 handle_bytes = handle_dwords * sizeof(u32); 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() 77 handle_bytes = 0; in do_sys_name_to_handle() 108 struct_size(handle, f_handle, handle_bytes))) in do_sys_name_to_handle() 273 handle_dwords = handle->handle_bytes >> 2; in do_handle_to_path() [all …]
|
| /linux/tools/testing/selftests/namespaces/ |
| H A D | file_handle_test.c | 44 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() 51 ASSERT_GT(handle->handle_bytes, 0); in TEST() 99 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() 106 ASSERT_GT(handle->handle_bytes, 0); in TEST() 149 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() 156 ASSERT_GT(handle->handle_bytes, 0); in TEST() 199 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() 206 ASSERT_GT(handle->handle_bytes, 0); in TEST() 249 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() 256 ASSERT_GT(handle->handle_bytes, 0); in TEST() [all …]
|
| H A D | ns_active_ref_test.c | 51 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() 124 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() 134 write(pipefd[1], buf, sizeof(*handle) + handle->handle_bytes); in TEST() 209 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() 220 write(pipefd[1], buf, sizeof(*handle) + handle->handle_bytes); in TEST() 344 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() 354 write(pipefd[1], buf, sizeof(*handle) + handle->handle_bytes); in TEST() 422 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() 431 write(pipefd[1], buf, sizeof(*handle) + handle->handle_bytes); in TEST() 514 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() [all …]
|
| H A D | siocgskns_test.c | 803 handle->handle_bytes = sizeof(struct nsfs_file_handle); in TEST() 1008 handle->handle_bytes = sizeof(struct nsfs_file_handle); in TEST() 1325 handle->handle_bytes = sizeof(struct nsfs_file_handle); in TEST()
|
| H A D | listns_test.c | 100 fh->handle_bytes = sizeof(nsfh); in TEST()
|
| /linux/fs/notify/ |
| H A D | fdinfo.c | 45 DEFINE_FLEX(struct file_handle, f, f_handle, handle_bytes, MAX_HANDLE_SZ); in show_mark_fhandle() 48 size = f->handle_bytes >> 2; in show_mark_fhandle() 60 f->handle_bytes = size * sizeof(u32); in show_mark_fhandle() 63 f->handle_bytes, f->handle_type); in show_mark_fhandle() 65 for (i = 0; i < f->handle_bytes; i++) in show_mark_fhandle()
|
| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_file_handle_test.c | 154 fh->handle_bytes = MAX_HANDLE_SZ; in TEST_F() 201 fh->handle_bytes = MAX_HANDLE_SZ; in TEST_F() 247 fh->handle_bytes = MAX_HANDLE_SZ; in TEST_F() 283 fh->handle_bytes = MAX_HANDLE_SZ; in TEST_F() 322 fh->handle_bytes = MAX_HANDLE_SZ; in TEST_F() 361 fh->handle_bytes = MAX_HANDLE_SZ; in TEST_F() 419 fh->handle_bytes = MAX_HANDLE_SZ; in TEST_F() 440 fh->handle_bytes = MAX_HANDLE_SZ; in TEST_F() 466 fh->handle_bytes = MAX_HANDLE_SZ; in TEST_F() 488 fh->handle_bytes = MAX_HANDLE_SZ; in TEST_F() [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | cgroup_helpers.c | 492 if (err >= 0 || fhp->handle_bytes != 8) { in get_cgroup_id_from_path() 497 fhsize = sizeof(struct file_handle) + fhp->handle_bytes; in get_cgroup_id_from_path()
|
| /linux/tools/perf/util/ |
| H A D | cgroup.c | 60 handle.fh.handle_bytes = sizeof(handle.cgroup_id); in __read_cgroup_id()
|
| H A D | synthetic-events.c | 574 handle.fh.handle_bytes = sizeof(handle.cgroup_id); in perf_event__synthesize_cgroup()
|
| /linux/include/linux/ |
| H A D | fs.h | 1303 __u32 handle_bytes; member 1306 unsigned char f_handle[] __counted_by(handle_bytes);
|
| /linux/fs/notify/fanotify/ |
| H A D | fanotify_user.c | 597 handle.handle_bytes = fh_len; in copy_fid_info_to_user()
|