Home
last modified time | relevance | path

Searched refs:path_len (Results 1 - 25 of 46) sorted by relevance

12

/kernel/linux/linux-5.10/fs/hmdfs/comm/
H A Dmessage_verify.c292 int str_len[] = { req->path_len }; in verify_open_req()
294 if (req->path_len < 0 || req->path_len >= PATH_MAX) in verify_open_req()
297 if (msg_len != sizeof(*req) + req->path_len + 1) in verify_open_req()
300 str_len[0] = req->path_len; in verify_open_req()
331 int str_len[] = { req->path_len, req->file_len}; in verify_atomic_open_req()
333 if (req->path_len < 0 || req->path_len >= PATH_MAX || in verify_atomic_open_req()
337 if (msg_len != sizeof(*req) + req->path_len + 1 + req->file_len + 1) in verify_atomic_open_req()
370 int str_len[] = { req->path_len }; in verify_iterate_req()
[all...]
H A Dprotocol.h190 __le32 path_len; member
218 __le32 path_len; member
279 __le32 path_len; member
295 __le32 path_len; member
302 __le32 path_len; member
310 __le32 path_len; member
316 __le32 path_len; member
331 __le32 path_len; member
345 __le32 path_len; member
351 __le32 path_len; member
381 __le32 path_len; global() member
410 __le32 path_len; global() member
422 __le32 path_len; global() member
431 __le32 path_len; global() member
[all...]
/kernel/linux/linux-6.6/fs/hmdfs/comm/
H A Dmessage_verify.c292 int str_len[] = { req->path_len }; in verify_open_req()
294 if (req->path_len < 0 || req->path_len >= PATH_MAX) in verify_open_req()
297 if (msg_len != sizeof(*req) + req->path_len + 1) in verify_open_req()
300 str_len[0] = req->path_len; in verify_open_req()
331 int str_len[] = { req->path_len, req->file_len}; in verify_atomic_open_req()
333 if (req->path_len < 0 || req->path_len >= PATH_MAX || in verify_atomic_open_req()
337 if (msg_len != sizeof(*req) + req->path_len + 1 + req->file_len + 1) in verify_atomic_open_req()
370 int str_len[] = { req->path_len }; in verify_iterate_req()
[all...]
H A Dprotocol.h190 __le32 path_len; member
218 __le32 path_len; member
279 __le32 path_len; member
295 __le32 path_len; member
302 __le32 path_len; member
310 __le32 path_len; member
316 __le32 path_len; member
331 __le32 path_len; member
345 __le32 path_len; member
351 __le32 path_len; member
381 __le32 path_len; global() member
410 __le32 path_len; global() member
422 __le32 path_len; global() member
431 __le32 path_len; global() member
[all...]
/kernel/linux/linux-5.10/fs/hmdfs/
H A Dhmdfs_client.c36 int path_len = strlen(send_buf); in hmdfs_send_open() local
37 size_t send_len = sizeof(struct open_request) + path_len + 1; in hmdfs_send_open()
53 open_req->path_len = cpu_to_le32(path_len); in hmdfs_send_open()
420 const char *path, int path_len, in hmdfs_client_start_readdir()
424 size_t send_len = sizeof(struct readdir_request) + path_len + 1; in hmdfs_client_start_readdir()
438 req->path_len = cpu_to_le32(path_len); in hmdfs_client_start_readdir()
439 strncpy(req->path, path, path_len); in hmdfs_client_start_readdir()
464 int path_len in hmdfs_client_start_mkdir() local
419 hmdfs_client_start_readdir(struct hmdfs_peer *con, struct file *filp, const char *path, int path_len, struct hmdfs_dcache_header *header) hmdfs_client_start_readdir() argument
513 int path_len = strlen(path); hmdfs_client_start_create() local
561 int path_len = strlen(path); hmdfs_client_start_rmdir() local
592 int path_len = strlen(path); hmdfs_client_start_unlink() local
669 int path_len = strlen(send_buf); hmdfs_send_setattr() local
727 int path_len = strlen(send_buf); hmdfs_send_getattr() local
784 int path_len = strlen(path); hmdfs_send_statfs() local
865 size_t path_len = strlen(send_buf); hmdfs_send_getxattr() local
905 size_t path_len = strlen(send_buf); hmdfs_send_setxattr() local
957 size_t path_len = strlen(send_buf); hmdfs_send_listxattr() local
1031 int path_len = strlen(path); hmdfs_send_drop_push() local
[all...]
H A Dhmdfs_server.c134 int path_len; in hmdfs_open_link() local
136 path_len = strlen(root_name) + strlen(path) + 2; in hmdfs_open_link()
137 if (path_len > PATH_MAX) { in hmdfs_open_link()
141 real_path = kzalloc(path_len, GFP_KERNEL); in hmdfs_open_link()
555 if (path_contain_dotdot(recv->buf, recv->path_len)) { in hmdfs_server_open()
631 char *filename = recv->buf + le32_to_cpu(recv->path_len) + 1; in hmdfs_lookup_create()
751 char *file = recv->buf + recv->path_len + 1; in hmdfs_server_atomic_open()
753 if (path_contain_dotdot(file_path, recv->path_len)) { in hmdfs_server_atomic_open()
1009 size_t path_len = 0; in server_lower_dentry_path_raw() local
1022 if (unlikely(path_len in server_lower_dentry_path_raw()
1156 int path_len = le32_to_cpu(mkdir_recv->path_len); hmdfs_server_mkdir() local
1206 int path_len = le32_to_cpu(create_recv->path_len); hmdfs_server_create() local
[all...]
H A Dstash.c59 __le32 path_len; member
275 head->path_len = cpu_to_le32(cache->path_len); in hmdfs_set_stash_file_head()
324 written = kernel_write(cache->cache_file, cache->path, cache->path_len, in hmdfs_flush_stash_file_metadata()
326 if (written != cache->path_len) { in hmdfs_flush_stash_file_metadata()
329 cache->path_len, written); in hmdfs_flush_stash_file_metadata()
600 cache->path_len = strlen(cache->path) + 1; in hmdfs_new_file_cache()
603 cache->data_offs = cache->path_offs + DIV_ROUND_UP(cache->path_len, in hmdfs_new_file_cache()
1231 read_size = min_t(unsigned int, le32_to_cpu(head.path_len), PATH_MAX); in hmdfs_get_restore_file_metadata()
/kernel/linux/linux-6.6/fs/hmdfs/
H A Dhmdfs_client.c36 int path_len = strlen(send_buf); in hmdfs_send_open() local
37 size_t send_len = sizeof(struct open_request) + path_len + 1; in hmdfs_send_open()
53 open_req->path_len = cpu_to_le32(path_len); in hmdfs_send_open()
419 const char *path, int path_len, in hmdfs_client_start_readdir()
423 size_t send_len = sizeof(struct readdir_request) + path_len + 1; in hmdfs_client_start_readdir()
437 req->path_len = cpu_to_le32(path_len); in hmdfs_client_start_readdir()
438 strncpy(req->path, path, path_len); in hmdfs_client_start_readdir()
463 int path_len in hmdfs_client_start_mkdir() local
418 hmdfs_client_start_readdir(struct hmdfs_peer *con, struct file *filp, const char *path, int path_len, struct hmdfs_dcache_header *header) hmdfs_client_start_readdir() argument
512 int path_len = strlen(path); hmdfs_client_start_create() local
560 int path_len = strlen(path); hmdfs_client_start_rmdir() local
591 int path_len = strlen(path); hmdfs_client_start_unlink() local
668 int path_len = strlen(send_buf); hmdfs_send_setattr() local
726 int path_len = strlen(send_buf); hmdfs_send_getattr() local
783 int path_len = strlen(path); hmdfs_send_statfs() local
864 size_t path_len = strlen(send_buf); hmdfs_send_getxattr() local
904 size_t path_len = strlen(send_buf); hmdfs_send_setxattr() local
956 size_t path_len = strlen(send_buf); hmdfs_send_listxattr() local
1030 int path_len = strlen(path); hmdfs_send_drop_push() local
[all...]
H A Dhmdfs_server.c134 int path_len; in hmdfs_open_link() local
136 path_len = strlen(root_name) + strlen(path) + 2; in hmdfs_open_link()
137 if (path_len > PATH_MAX) { in hmdfs_open_link()
141 real_path = kzalloc(path_len, GFP_KERNEL); in hmdfs_open_link()
555 if (path_contain_dotdot(recv->buf, recv->path_len)) { in hmdfs_server_open()
631 char *filename = recv->buf + le32_to_cpu(recv->path_len) + 1; in hmdfs_lookup_create()
751 char *file = recv->buf + recv->path_len + 1; in hmdfs_server_atomic_open()
753 if (path_contain_dotdot(file_path, recv->path_len)) { in hmdfs_server_atomic_open()
1009 size_t path_len = 0; in server_lower_dentry_path_raw() local
1022 if (unlikely(path_len in server_lower_dentry_path_raw()
1156 int path_len = le32_to_cpu(mkdir_recv->path_len); hmdfs_server_mkdir() local
1206 int path_len = le32_to_cpu(create_recv->path_len); hmdfs_server_create() local
[all...]
H A Dstash.c59 __le32 path_len; member
265 head->path_len = cpu_to_le32(cache->path_len); in hmdfs_set_stash_file_head()
314 written = kernel_write(cache->cache_file, cache->path, cache->path_len, in hmdfs_flush_stash_file_metadata()
316 if (written != cache->path_len) { in hmdfs_flush_stash_file_metadata()
319 cache->path_len, written); in hmdfs_flush_stash_file_metadata()
590 cache->path_len = strlen(cache->path) + 1; in hmdfs_new_file_cache()
593 cache->data_offs = cache->path_offs + DIV_ROUND_UP(cache->path_len, in hmdfs_new_file_cache()
1221 read_size = min_t(unsigned int, le32_to_cpu(head.path_len), PATH_MAX); in hmdfs_get_restore_file_metadata()
/kernel/linux/linux-5.10/scripts/dtc/libfdt/
H A Dfdt_overlay.c63 int path_len = 0, ret; in overlay_get_target() local
73 path = fdt_getprop(fdto, fragment, "target-path", &path_len); in overlay_get_target()
77 ret = path_len; in overlay_get_target()
88 if (ret < 0 && path_len == -FDT_ERR_NOTFOUND) in overlay_get_target()
351 * @path_len: number of path characters to consider
370 const char *path, uint32_t path_len, in overlay_fixup_one_phandle()
396 fixup_off = fdt_path_offset_namelen(fdto, path, path_len); in overlay_fixup_one_phandle()
447 uint32_t path_len, name_len; in overlay_fixup_phandle() local
465 path_len = sep - path; in overlay_fixup_phandle()
466 if (path_len in overlay_fixup_phandle()
368 overlay_fixup_one_phandle(void *fdt, void *fdto, int symbols_off, const char *path, uint32_t path_len, const char *name, uint32_t name_len, int poffset, const char *label) overlay_fixup_one_phandle() argument
697 int root_sym, ov_sym, prop, path_len, fragment, target; overlay_symbol_update() local
[all...]
/kernel/linux/linux-6.6/scripts/dtc/libfdt/
H A Dfdt_overlay.c48 int path_len = 0, ret; in fdt_overlay_target_offset() local
58 path = fdt_getprop(fdto, fragment_offset, "target-path", &path_len); in fdt_overlay_target_offset()
62 ret = path_len; in fdt_overlay_target_offset()
73 if (ret < 0 && path_len == -FDT_ERR_NOTFOUND) in fdt_overlay_target_offset()
336 * @path_len: number of path characters to consider
355 const char *path, uint32_t path_len, in overlay_fixup_one_phandle()
381 fixup_off = fdt_path_offset_namelen(fdto, path, path_len); in overlay_fixup_one_phandle()
432 uint32_t path_len, name_len; in overlay_fixup_phandle() local
450 path_len = sep - path; in overlay_fixup_phandle()
451 if (path_len in overlay_fixup_phandle()
353 overlay_fixup_one_phandle(void *fdt, void *fdto, int symbols_off, const char *path, uint32_t path_len, const char *name, uint32_t name_len, int poffset, const char *label) overlay_fixup_one_phandle() argument
682 int root_sym, ov_sym, prop, path_len, fragment, target; overlay_symbol_update() local
[all...]
/kernel/linux/linux-6.6/fs/smb/server/
H A Dmisc.c288 int no_slash = 0, name_len, path_len; in convert_to_unix_name() local
294 path_len = share->path_sz; in convert_to_unix_name()
296 new_name = kmalloc(path_len + name_len + 2, GFP_KERNEL); in convert_to_unix_name()
300 memcpy(new_name, share->path, path_len); in convert_to_unix_name()
301 if (new_name[path_len - 1] != '/') { in convert_to_unix_name()
302 new_name[path_len] = '/'; in convert_to_unix_name()
306 memcpy(new_name + path_len + no_slash, name, name_len); in convert_to_unix_name()
307 path_len += name_len + no_slash; in convert_to_unix_name()
308 new_name[path_len] = 0x00; in convert_to_unix_name()
/kernel/linux/linux-5.10/arch/um/os-Linux/
H A Dmain.c78 int path_len = 0; in setup_env_path() local
85 if (!old_path || (path_len = strlen(old_path)) == 0) { in setup_env_path()
92 path_len += strlen("PATH=" UML_LIB_PATH) + 1; in setup_env_path()
93 new_path = malloc(path_len); in setup_env_path()
98 snprintf(new_path, path_len, "PATH=%s" UML_LIB_PATH, old_path); in setup_env_path()
/kernel/linux/linux-6.6/arch/um/os-Linux/
H A Dmain.c78 int path_len = 0; in setup_env_path() local
85 if (!old_path || (path_len = strlen(old_path)) == 0) { in setup_env_path()
92 path_len += strlen("PATH=" UML_LIB_PATH) + 1; in setup_env_path()
93 new_path = malloc(path_len); in setup_env_path()
98 snprintf(new_path, path_len, "PATH=%s" UML_LIB_PATH, old_path); in setup_env_path()
/kernel/linux/linux-5.10/fs/vboxsf/
H A Dutils.c349 int path_len, out_len, nb; in vboxsf_path_from_dentry() local
363 path_len = strlen(path); in vboxsf_path_from_dentry()
375 while (path_len) { in vboxsf_path_from_dentry()
376 nb = sbi->nls->char2uni(path, path_len, &uni); in vboxsf_path_from_dentry()
383 path_len -= nb; in vboxsf_path_from_dentry()
399 if ((SHFLSTRING_HEADER_SIZE + path_len + 1) > PATH_MAX) { in vboxsf_path_from_dentry()
408 memmove(shfl_path->string.utf8, path, path_len); in vboxsf_path_from_dentry()
409 shfl_path->string.utf8[path_len] = 0; in vboxsf_path_from_dentry()
410 shfl_path->length = path_len; in vboxsf_path_from_dentry()
411 shfl_path->size = path_len in vboxsf_path_from_dentry()
[all...]
/kernel/linux/linux-6.6/fs/vboxsf/
H A Dutils.c369 int path_len, out_len, nb; in vboxsf_path_from_dentry() local
383 path_len = strlen(path); in vboxsf_path_from_dentry()
395 while (path_len) { in vboxsf_path_from_dentry()
396 nb = sbi->nls->char2uni(path, path_len, &uni); in vboxsf_path_from_dentry()
403 path_len -= nb; in vboxsf_path_from_dentry()
419 if ((SHFLSTRING_HEADER_SIZE + path_len + 1) > PATH_MAX) { in vboxsf_path_from_dentry()
428 memmove(shfl_path->string.utf8, path, path_len); in vboxsf_path_from_dentry()
429 shfl_path->string.utf8[path_len] = 0; in vboxsf_path_from_dentry()
430 shfl_path->length = path_len; in vboxsf_path_from_dentry()
431 shfl_path->size = path_len in vboxsf_path_from_dentry()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/
H A Dmtk_drm_crtc.h21 unsigned int path_len);
/kernel/linux/linux-6.6/drivers/gpu/drm/mediatek/
H A Dmtk_drm_crtc.h20 unsigned int path_len,
/kernel/linux/common_modules/dec/
H A Ddec_misc.h27 uint32_t path_len; member
/kernel/linux/common_modules/code_sign/
H A Dcode_sign_ioctl.h18 __u32 path_len; member
H A Dcode_sign_ioctl.c220 if (info.path_len > CERT_CHAIN_PATH_LEN_MAX || info.issuer_length == 0 || info.signing_length == 0 in parse_cert_source()
252 source->max_path_depth = info.path_len; in parse_cert_source()
/kernel/linux/linux-5.10/drivers/xen/xenbus/
H A Dxenbus_dev_frontend.c273 int path_len, tok_len, body_len; in watch_fired() local
281 path_len = strlen(path) + 1; in watch_fired()
283 body_len = path_len + tok_len; in watch_fired()
292 ret = queue_reply(&staging_q, path, path_len); in watch_fired()
/kernel/linux/linux-6.6/drivers/xen/xenbus/
H A Dxenbus_dev_frontend.c273 int path_len, tok_len, body_len; in watch_fired() local
281 path_len = strlen(path) + 1; in watch_fired()
283 body_len = path_len + tok_len; in watch_fired()
292 ret = queue_reply(&staging_q, path, path_len); in watch_fired()
/kernel/linux/common_modules/tzdriver/core/
H A Dagent.c101 char *get_proc_dpath(char *path, int path_len) in get_proc_dpath() argument
106 if (!path || path_len != MAX_PATH_SIZE) { in get_proc_dpath()
111 if (memset_s(path, path_len, '\0', MAX_PATH_SIZE) != 0) { in get_proc_dpath()
130 char *get_proc_dpath(char *path, int path_len) in get_proc_dpath() argument
140 if (!path || path_len != MAX_PATH_SIZE) { in get_proc_dpath()
145 if (memset_s(path, path_len, '\0', MAX_PATH_SIZE) != 0) { in get_proc_dpath()

Completed in 25 milliseconds

12