Searched refs:MAX_HANDLE_SZ (Results 1 – 9 of 9) sorted by relevance
| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_file_handle_test.c | 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() 154 fh->handle_bytes = MAX_HANDLE_SZ; in TEST_F() 198 fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F() 200 memset(fh, 0, sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F() 201 fh->handle_bytes = MAX_HANDLE_SZ; in TEST_F() 244 fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F() 246 memset(fh, 0, sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F() 247 fh->handle_bytes = MAX_HANDLE_SZ; in TEST_F() 280 fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F() [all …]
|
| /linux/tools/testing/selftests/namespaces/ |
| H A D | file_handle_test.c | 36 handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ); in TEST() 44 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() 91 handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ); in TEST() 99 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() 141 handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ); in TEST() 149 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() 191 handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ); in TEST() 199 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() 241 handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ); in TEST() 249 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() [all …]
|
| H A D | ns_active_ref_test.c | 43 handle = malloc(sizeof(*handle) + MAX_HANDLE_SZ); in TEST() 51 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() 96 char buf[sizeof(*handle) + MAX_HANDLE_SZ]; in TEST() 124 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() 177 char buf[sizeof(*handle) + MAX_HANDLE_SZ]; in TEST() 209 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() 299 char buf[sizeof(*handle) + MAX_HANDLE_SZ]; in TEST() 344 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() 389 char buf[sizeof(*handle) + MAX_HANDLE_SZ]; in TEST() 422 handle->handle_bytes = MAX_HANDLE_SZ; in TEST() [all …]
|
| /linux/fs/ |
| H A D | fhandle.c | 46 if (f_handle.handle_bytes > MAX_HANDLE_SZ) in do_sys_name_to_handle() 350 if ((f_handle.handle_bytes > MAX_HANDLE_SZ) || in handle_to_path()
|
| /linux/fs/notify/fanotify/ |
| H A D | fanotify.h | 169 BUILD_BUG_ON(FANOTIFY_FH_HDR_LEN + MAX_HANDLE_SZ > U8_MAX); in fanotify_info_init() 316 FANOTIFY_INLINE_FH(object_fh, MAX_HANDLE_SZ);
|
| H A D | fanotify.c | 400 if (WARN_ON_ONCE(fh_len > MAX_HANDLE_SZ)) in fanotify_encode_fh_len() 438 if (fh_len < 4 || WARN_ON_ONCE(fh_len % 4) || fh_len > MAX_HANDLE_SZ) in fanotify_encode_fh() 462 BUILD_BUG_ON(MAX_HANDLE_SZ > 0xff || FILEID_INVALID > 0xff); in fanotify_encode_fh()
|
| /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()
|
| /linux/include/linux/ |
| H A D | exportfs.h | 16 #define MAX_HANDLE_SZ 128 macro
|
| /linux/fs/overlayfs/ |
| H A D | copy_up.c | 423 int buflen = MAX_HANDLE_SZ; in ovl_encode_real_fh() 429 BUILD_BUG_ON(MAX_HANDLE_SZ + OVL_FH_FID_OFFSET > 255); in ovl_encode_real_fh() 447 WARN_ON(buflen > MAX_HANDLE_SZ)) in ovl_encode_real_fh()
|