Home
last modified time | relevance | path

Searched refs:new_path (Results 1 – 25 of 31) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/acpi/acpica/
Dnsnames.c414 char *new_path; in acpi_ns_normalize_pathname() local
420 new_path = new_path_buffer; in acpi_ns_normalize_pathname()
428 *new_path = *input_path; in acpi_ns_normalize_pathname()
429 new_path++; in acpi_ns_normalize_pathname()
434 *new_path = *input_path; in acpi_ns_normalize_pathname()
435 new_path++; in acpi_ns_normalize_pathname()
447 *new_path = *input_path; in acpi_ns_normalize_pathname()
448 new_path++; in acpi_ns_normalize_pathname()
457 *new_path = *input_path; in acpi_ns_normalize_pathname()
458 new_path++; in acpi_ns_normalize_pathname()
[all …]
/kernel/linux/linux-5.10/tools/lib/subcmd/
Dexec-cmd.c143 char *new_path = NULL; in setup_path() local
146 add_path(&new_path, tmp); in setup_path()
147 add_path(&new_path, argv0_path); in setup_path()
151 astrcat(&new_path, old_path); in setup_path()
153 astrcat(&new_path, "/usr/local/bin:/usr/bin:/bin"); in setup_path()
155 setenv("PATH", new_path, 1); in setup_path()
157 free(new_path); in setup_path()
/kernel/linux/linux-5.10/arch/um/os-Linux/
Dmain.c76 char *new_path = NULL; in setup_env_path() local
93 new_path = malloc(path_len); in setup_env_path()
94 if (!new_path) { in setup_env_path()
98 snprintf(new_path, path_len, "PATH=%s" UML_LIB_PATH, old_path); in setup_env_path()
99 if (putenv(new_path)) { in setup_env_path()
101 free(new_path); in setup_env_path()
/kernel/linux/linux-5.10/fs/
Dinit.c169 struct path old_path, new_path; in init_link() local
176 new_dentry = kern_path_create(AT_FDCWD, newname, &new_path, 0); in init_link()
182 if (old_path.mnt != new_path.mnt) in init_link()
187 error = security_path_link(old_path.dentry, &new_path, new_dentry); in init_link()
190 error = vfs_link(old_path.dentry, new_path.dentry->d_inode, new_dentry, in init_link()
193 done_path_create(&new_path, new_dentry); in init_link()
Dnamei.c4115 struct path old_path, new_path; in do_linkat() local
4140 new_dentry = user_path_create(newdfd, newname, &new_path, in do_linkat()
4147 if (old_path.mnt != new_path.mnt) in do_linkat()
4152 error = security_path_link(old_path.dentry, &new_path, new_dentry); in do_linkat()
4155 error = vfs_link(old_path.dentry, new_path.dentry->d_inode, new_dentry, &delegated_inode); in do_linkat()
4157 done_path_create(&new_path, new_dentry); in do_linkat()
4367 struct path old_path, new_path; in do_renameat2() local
4393 to = filename_parentat(newdfd, to, lookup_flags, &new_path, &new_last, in do_renameat2()
4401 if (old_path.mnt != new_path.mnt) in do_renameat2()
4418 trap = lock_rename(new_path.dentry, old_path.dentry); in do_renameat2()
[all …]
Dnamespace.c2682 static int do_move_mount(struct path *old_path, struct path *new_path) in do_move_mount() argument
2692 mp = lock_mount(new_path); in do_move_mount()
2697 p = real_mount(new_path->mnt); in do_move_mount()
2722 if (d_is_dir(new_path->dentry) != in do_move_mount()
2743 err = attach_recursive_mnt(old, real_mount(new_path->mnt), mp, in do_move_mount()
/kernel/liteos_a/fs/vfs/operation/
Dvfs_other.c682 char *new_path = NULL; in realpath() local
685 ret = vfs_normalize_path(NULL, path, &new_path); in realpath()
692 result = stat(new_path, &buf); in realpath()
696 free(new_path); in realpath()
699 return new_path; in realpath()
702 ret = strcpy_s(resolved_path, PATH_MAX, new_path); in realpath()
706 free(new_path); in realpath()
710 free(new_path); in realpath()
/kernel/linux/linux-5.10/fs/vboxsf/
Ddir.c398 struct shfl_string *old_path, *new_path; in vboxsf_dir_rename() local
408 new_path = vboxsf_path_from_dentry(sbi, new_dentry); in vboxsf_dir_rename()
409 if (IS_ERR(new_path)) { in vboxsf_dir_rename()
410 err = PTR_ERR(new_path); in vboxsf_dir_rename()
417 err = vboxsf_rename(sbi->root, old_path, new_path, shfl_flags); in vboxsf_dir_rename()
424 __putname(new_path); in vboxsf_dir_rename()
Dvboxsf_wrappers.c340 int vboxsf_symlink(u32 root, struct shfl_string *new_path, in vboxsf_symlink() argument
348 parms.new_path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_IN; in vboxsf_symlink()
349 parms.new_path.u.pointer.size = shfl_string_buf_size(new_path); in vboxsf_symlink()
350 parms.new_path.u.pointer.u.linear_addr = (uintptr_t)new_path; in vboxsf_symlink()
Dvfsmod.h138 int vboxsf_symlink(u32 root, struct shfl_string *new_path,
Dshfl_hostintf.h883 struct vmmdev_hgcm_function_parameter new_path; member
/kernel/linux/linux-5.10/tools/perf/
Dbuiltin-help.c330 char *new_path; in setup_man_path() local
337 if (asprintf(&new_path, "%s:%s", system_path(PERF_MAN_PATH), old_path ?: "") > 0) { in setup_man_path()
338 setenv("MANPATH", new_path, 1); in setup_man_path()
339 free(new_path); in setup_man_path()
/kernel/linux/linux-5.10/security/apparmor/
Dmount.c640 const struct path *new_path, in build_pivotroot() argument
652 AA_BUG(!new_path); in build_pivotroot()
664 error = aa_path_name(new_path, path_flags(profile, new_path), in build_pivotroot()
692 const struct path *new_path) in aa_pivotroot() argument
701 AA_BUG(!new_path); in aa_pivotroot()
709 build_pivotroot(profile, new_path, new_buffer, in aa_pivotroot()
Dlsm.c366 struct path new_path = { .mnt = new_dir->mnt, in apparmor_path_rename() local
377 error = aa_path_perm(OP_RENAME_DEST, label, &new_path, in apparmor_path_rename()
575 const struct path *new_path) in apparmor_sb_pivotroot() argument
582 error = aa_pivotroot(label, old_path, new_path); in apparmor_sb_pivotroot()
/kernel/linux/linux-5.10/tools/perf/util/
Dprobe-finder.c1994 const char *sbuild_id, char **new_path) in get_source_from_debuginfod() argument
2004 0, p, new_path); in get_source_from_debuginfod()
2014 pr_debug("Got a source %s\n", *new_path); in get_source_from_debuginfod()
2021 char **new_path __maybe_unused) in get_source_from_debuginfod()
2033 const char *comp_dir, char **new_path) in find_source_path() argument
2038 if (!get_source_from_debuginfod(raw_path, sbuild_id, new_path)) in find_source_path()
2048 *new_path = strdup(raw_path); in find_source_path()
2049 return *new_path ? 0 : -ENOMEM; in find_source_path()
2055 *new_path = malloc((strlen(prefix) + strlen(raw_path) + 2)); in find_source_path()
2056 if (!*new_path) in find_source_path()
[all …]
Dprobe-finder.h65 const char *comp_dir, char **new_path);
/kernel/linux/linux-5.10/security/apparmor/include/
Dmount.h48 const struct path *new_path);
/kernel/linux/linux-5.10/fs/ocfs2/
Dioctl.c846 const char __user *new_path; in ocfs2_ioctl() local
909 new_path = (const char __user *)(unsigned long)args.new_path; in ocfs2_ioctl()
912 return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve); in ocfs2_ioctl()
982 compat_ptr(args.new_path), preserve); in ocfs2_compat_ioctl()
Docfs2_ioctl.h66 __u64 new_path; member
/kernel/linux/linux-5.10/fs/proc/
Dproc_sysctl.c1508 char *new_path, *pos; in __register_sysctl_paths() local
1510 pos = new_path = kmalloc(PATH_MAX, GFP_KERNEL); in __register_sysctl_paths()
1511 if (!new_path) in __register_sysctl_paths()
1516 pos = append_path(new_path, pos, component->procname); in __register_sysctl_paths()
1521 pos = append_path(new_path, pos, table->procname); in __register_sysctl_paths()
1527 header = __register_sysctl_table(set, new_path, table); in __register_sysctl_paths()
1540 if (register_leaf_sysctl_tables(new_path, pos, &subheader, in __register_sysctl_paths()
1546 kfree(new_path); in __register_sysctl_paths()
/kernel/linux/linux-5.10/security/tomoyo/
Dtomoyo.c420 static int tomoyo_sb_pivotroot(const struct path *old_path, const struct path *new_path) in tomoyo_sb_pivotroot() argument
422 return tomoyo_path2_perm(TOMOYO_TYPE_PIVOT_ROOT, new_path, old_path); in tomoyo_sb_pivotroot()
/kernel/linux/linux-5.10/fs/hmdfs/
Dhmdfs_client.h49 const char *old_name, const char *new_path,
Dhmdfs_client.c606 const char *old_name, const char *new_path, in hmdfs_client_start_rename() argument
611 int new_path_len = strlen(new_path); in hmdfs_client_start_rename()
635 strncpy(rename_req->path + old_path_len + 1, new_path, new_path_len); in hmdfs_client_start_rename()
Dhmdfs_dentryfile.c1079 struct path new_path; in hmdfs_linkat() local
1082 new_dentry = kern_path_create(AT_FDCWD, newname, &new_path, 0); in hmdfs_linkat()
1090 if (old_path->mnt != new_path.mnt) in hmdfs_linkat()
1093 error = vfs_link(old_path->dentry, new_path.dentry->d_inode, new_dentry, in hmdfs_linkat()
1097 done_path_create(&new_path, new_dentry); in hmdfs_linkat()
/kernel/linux/linux-5.10/fs/exfat/
Dnamei.c1189 const unsigned char *new_path = new_dentry->d_name.name; in __exfat_rename() local
1198 if (new_path == NULL || strlen(new_path) == 0) in __exfat_rename()
1256 ret = exfat_resolve_path(new_parent_inode, new_path, &newdir, in __exfat_rename()

12