Home
last modified time | relevance | path

Searched refs:path_len (Results 1 – 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/fs/hmdfs/
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()
51 open_req->path_len = cpu_to_le32(path_len); in hmdfs_send_open()
414 const char *path, int path_len, in hmdfs_client_start_readdir() argument
418 size_t send_len = sizeof(struct readdir_request) + path_len + 1; in hmdfs_client_start_readdir()
432 req->path_len = cpu_to_le32(path_len); in hmdfs_client_start_readdir()
433 strncpy(req->path, path, path_len); in hmdfs_client_start_readdir()
458 int path_len = strlen(path); in hmdfs_client_start_mkdir() local
460 size_t send_len = sizeof(struct mkdir_request) + path_len + 1 + in hmdfs_client_start_mkdir()
473 mkdir_req->path_len = cpu_to_le32(path_len); in hmdfs_client_start_mkdir()
[all …]
Dhmdfs_server.c83 int path_len; in hmdfs_open_link() local
85 path_len = strlen(root_name) + strlen(path) + 2; in hmdfs_open_link()
86 if (path_len > PATH_MAX) { in hmdfs_open_link()
90 real_path = kzalloc(path_len, GFP_KERNEL); in hmdfs_open_link()
571 char *filename = recv->buf + le32_to_cpu(recv->path_len) + 1; in hmdfs_lookup_create()
931 size_t path_len = 0; in server_lower_dentry_path_raw() local
944 if (unlikely(path_len + dlen + 1 > PATH_MAX - 1)) { in server_lower_dentry_path_raw()
949 lo_p_buf[path_len++] = in server_lower_dentry_path_raw()
951 lo_p_buf[path_len++] = '/'; in server_lower_dentry_path_raw()
955 for (buf_head = lo_p_buf, buf_tail = lo_p_buf + path_len - 1; in server_lower_dentry_path_raw()
[all …]
Dinode.h49 __u32 path_len; member
Dhmdfs_client.h35 const char *path, int path_len,
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-5.10/fs/hmdfs/comm/
Dmessage_verify.c336 int str_len[] = { req->path_len }; in verify_open_req()
338 if (req->path_len < 0 || req->path_len >= PATH_MAX) in verify_open_req()
341 if (msg_len != sizeof(*req) + req->path_len + 1) in verify_open_req()
344 str_len[0] = req->path_len; in verify_open_req()
352 if (path_contain_dotdot(req->buf, req->path_len)) { in verify_open_req()
384 int str_len[] = { req->path_len, req->file_len}; in verify_atomic_open_req()
386 if (req->path_len < 0 || req->path_len >= PATH_MAX || in verify_atomic_open_req()
390 if (msg_len != sizeof(*req) + req->path_len + 1 + req->file_len + 1) in verify_atomic_open_req()
423 int str_len[] = { req->path_len }; in verify_iterate_req()
425 if (req->path_len < 0 || req->path_len >= PATH_MAX) in verify_iterate_req()
[all …]
Dprotocol.h189 __le32 path_len; member
217 __le32 path_len; member
278 __le32 path_len; member
294 __le32 path_len; member
301 __le32 path_len; member
309 __le32 path_len; member
315 __le32 path_len; member
330 __le32 path_len; member
344 __le32 path_len; member
350 __le32 path_len; member
[all …]
/kernel/linux/linux-5.10/scripts/dtc/libfdt/
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()
370 const char *path, uint32_t path_len, in overlay_fixup_one_phandle() argument
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 == (fixup_len - 1)) in overlay_fixup_phandle()
469 fixup_len -= path_len + 1; in overlay_fixup_phandle()
[all …]
/kernel/linux/linux-5.10/arch/um/os-Linux/
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/
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 + 1; in vboxsf_path_from_dentry()
/kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/
Dmtk_drm_crtc.h21 unsigned int path_len);
Dmtk_drm_crtc.c730 const enum mtk_ddp_comp_id *path, unsigned int path_len) in mtk_drm_crtc_create() argument
745 for (i = 0; i < path_len; i++) { in mtk_drm_crtc_create()
763 mtk_crtc->ddp_comp_nr = path_len; in mtk_drm_crtc_create()
Dmtk_drm_ddp_comp.c421 unsigned int path_len) in mtk_drm_find_comp_in_ddp() argument
428 for (i = 0U; i < path_len; i++) in mtk_drm_find_comp_in_ddp()
/kernel/linux/linux-5.10/drivers/xen/xenbus/
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-5.10/drivers/of/
Doverlay.c209 int path_len; in dup_and_fixup_symbol_prop() local
218 path_len = strlen(path); in dup_and_fixup_symbol_prop()
220 if (path_len < 1) in dup_and_fixup_symbol_prop()
237 if (overlay_name_len > path_len) in dup_and_fixup_symbol_prop()
/kernel/linux/linux-5.10/tools/perf/util/
Dsynthetic-events.c478 size_t path_len = strlen(path) - mount_len + 1; in perf_event__synthesize_cgroup() local
485 while (path_len % sizeof(u64)) in perf_event__synthesize_cgroup()
486 path[mount_len + path_len++] = '\0'; in perf_event__synthesize_cgroup()
491 event->cgroup.header.size = event_size + path_len + machine->id_hdr_size; in perf_event__synthesize_cgroup()
500 strncpy(event->cgroup.path, path + mount_len, path_len); in perf_event__synthesize_cgroup()
501 memset(event->cgroup.path + path_len, 0, machine->id_hdr_size); in perf_event__synthesize_cgroup()
/kernel/linux/linux-5.10/fs/btrfs/
Dsend.c385 int path_len; in fs_path_ensure_buf() local
398 path_len = p->end - p->start; in fs_path_ensure_buf()
421 tmp_buf = p->buf + old_buf_len - path_len - 1; in fs_path_ensure_buf()
423 p->start = p->end - path_len; in fs_path_ensure_buf()
424 memmove(p->start, tmp_buf, path_len + 1); in fs_path_ensure_buf()
427 p->end = p->start + path_len; in fs_path_ensure_buf()
/kernel/linux/linux-5.10/fs/cifs/
Dsmb2pdu.c2445 int treename_len, path_len; in alloc_path_with_tree_prefix() local
2459 path_len = UniStrnlen((wchar_t *)path, PATH_MAX); in alloc_path_with_tree_prefix()
2465 *out_len = treename_len + 1 + path_len; in alloc_path_with_tree_prefix()