Home
last modified time | relevance | path

Searched refs:new_name (Results 1 – 25 of 68) sorted by relevance

123

/linux-6.1.9/fs/ksmbd/
Dmisc.c289 char *new_name; in convert_to_unix_name() local
296 new_name = kmalloc(path_len + name_len + 2, GFP_KERNEL); in convert_to_unix_name()
297 if (!new_name) in convert_to_unix_name()
298 return new_name; 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()
308 new_name[path_len] = 0x00; in convert_to_unix_name()
309 return new_name; in convert_to_unix_name()
/linux-6.1.9/drivers/pci/
Dslot.c109 char *new_name; in make_slot_name() local
112 new_name = kstrdup(name, GFP_KERNEL); in make_slot_name()
113 if (!new_name) in make_slot_name()
127 dup_slot = kset_find_obj(pci_slots_kset, new_name); in make_slot_name()
134 kfree(new_name); in make_slot_name()
135 new_name = kmalloc(len, GFP_KERNEL); in make_slot_name()
136 if (!new_name) in make_slot_name()
139 sprintf(new_name, "%s-%d", name, dup++); in make_slot_name()
142 return new_name; in make_slot_name()
/linux-6.1.9/drivers/power/supply/
Dpower_supply_hwmon.c383 char *new_name; in power_supply_add_hwmon_sysfs() local
385 new_name = devm_kstrdup(dev, name, GFP_KERNEL); in power_supply_add_hwmon_sysfs()
386 if (!new_name) { in power_supply_add_hwmon_sysfs()
390 strreplace(new_name, '-', '_'); in power_supply_add_hwmon_sysfs()
391 name = new_name; in power_supply_add_hwmon_sysfs()
/linux-6.1.9/arch/mips/cavium-octeon/
Docteon-platform.c491 char new_name[20]; in octeon_fdt_set_phy() local
540 memset(new_name, 0, sizeof(new_name)); in octeon_fdt_set_phy()
541 strcpy(new_name, "marvell,88e1145"); in octeon_fdt_set_phy()
544 if (p && current_len >= strlen(new_name)) in octeon_fdt_set_phy()
546 "compatible", new_name, current_len); in octeon_fdt_set_phy()
555 snprintf(new_name, sizeof(new_name), "ethernet-phy@%x", phy_addr); in octeon_fdt_set_phy()
558 if (p && current_len == strlen(new_name)) in octeon_fdt_set_phy()
559 fdt_set_name(initial_boot_params, phy, new_name); in octeon_fdt_set_phy()
/linux-6.1.9/sound/soc/
Dsoc-compress.c551 char new_name[64]; in snd_soc_new_compress() local
609 snprintf(new_name, sizeof(new_name), "(%s)", in snd_soc_new_compress()
612 ret = snd_pcm_new_internal(rtd->card->snd_card, new_name, num, in snd_soc_new_compress()
630 snprintf(new_name, sizeof(new_name), "%s %s-%d", in snd_soc_new_compress()
646 new_name, compr); in snd_soc_new_compress()
Dsoc-pcm.c2822 char new_name[64]; in soc_create_pcm() local
2827 snprintf(new_name, sizeof(new_name), "codec2codec(%s)", in soc_create_pcm()
2830 ret = snd_pcm_new_internal(rtd->card->snd_card, new_name, num, in soc_create_pcm()
2833 snprintf(new_name, sizeof(new_name), "(%s)", in soc_create_pcm()
2836 ret = snd_pcm_new_internal(rtd->card->snd_card, new_name, num, in soc_create_pcm()
2840 snprintf(new_name, sizeof(new_name), "%s (*)", in soc_create_pcm()
2843 snprintf(new_name, sizeof(new_name), "%s %s-%d", in soc_create_pcm()
2847 ret = snd_pcm_new(rtd->card->snd_card, new_name, num, playback, in soc_create_pcm()
2852 new_name, rtd->dai_link->name, ret); in soc_create_pcm()
2855 dev_dbg(rtd->card->dev, "ASoC: registered pcm #%d %s\n",num, new_name); in soc_create_pcm()
/linux-6.1.9/tools/perf/util/
Ddsos.c94 char *new_name = filename_with_chroot(pos->nsinfo->pid, in __dsos__read_build_ids() local
97 if (new_name && filename__read_build_id(new_name, in __dsos__read_build_ids()
102 free(new_name); in __dsos__read_build_ids()
Dprint-events.c244 char name[64], new_name[128]; in print_hwcache_events() local
294 snprintf(new_name, sizeof(new_name), in print_hwcache_events()
297 strdup(new_name); in print_hwcache_events()
Dutil.c482 char *new_name = NULL; in filename_with_chroot() local
499 if (asprintf(&new_name, "%s/%s", buf, filename) < 0) in filename_with_chroot()
502 return new_name; in filename_with_chroot()
Ddata-convert-bt.c943 char *new_name = NULL; local
961 new_name = malloc(len);
962 if (!new_name)
966 snprintf(new_name, len, "_%s", name);
968 snprintf(new_name, len, "%s_dupl_%d", orig_name, dup);
973 return new_name;
/linux-6.1.9/include/linux/
Dkernfs.h242 const char *new_name);
442 const char *new_name, const void *new_ns);
546 const char *new_name, const void *new_ns) in kernfs_rename_ns() argument
623 const char *new_name) in kernfs_rename() argument
625 return kernfs_rename_ns(kn, new_parent, new_name, NULL); in kernfs_rename()
Dsysfs.h263 int __must_check sysfs_rename_dir_ns(struct kobject *kobj, const char *new_name,
301 const char *old_name, const char *new_name,
373 const char *new_name, const void *new_ns) in sysfs_rename_dir_ns() argument
473 const char *new_name, const void *ns) in sysfs_rename_link_ns() argument
633 const char *old_name, const char *new_name) in sysfs_rename_link() argument
635 return sysfs_rename_link_ns(kobj, target, old_name, new_name, NULL); in sysfs_rename_link()
Dfsnotify.h148 const struct qstr *new_name = &moved->d_name; in fsnotify_move() local
163 new_dir, new_name, fs_cookie); in fsnotify_move()
Ddebugfs.h115 struct dentry *new_dir, const char *new_name);
273 struct dentry *new_dir, char *new_name) in debugfs_rename() argument
/linux-6.1.9/fs/sysfs/
Ddir.c105 int sysfs_rename_dir_ns(struct kobject *kobj, const char *new_name, in sysfs_rename_dir_ns() argument
112 ret = kernfs_rename_ns(kobj->sd, parent, new_name, new_ns); in sysfs_rename_dir_ns()
/linux-6.1.9/fs/kernfs/
Ddir.c1656 const char *new_name, const void *new_ns) in kernfs_rename_ns() argument
1677 (strcmp(kn->name, new_name) == 0)) in kernfs_rename_ns()
1681 if (kernfs_find_ns(new_parent, new_name, new_ns)) in kernfs_rename_ns()
1685 if (strcmp(kn->name, new_name) != 0) { in kernfs_rename_ns()
1687 new_name = kstrdup_const(new_name, GFP_KERNEL); in kernfs_rename_ns()
1688 if (!new_name) in kernfs_rename_ns()
1691 new_name = NULL; in kernfs_rename_ns()
1707 if (new_name) { in kernfs_rename_ns()
1709 kn->name = new_name; in kernfs_rename_ns()
/linux-6.1.9/fs/hpfs/
Dnamei.c521 const unsigned char *new_name = new_dentry->d_name.name; in hpfs_rename() local
537 if ((err = hpfs_chk_name(new_name, &new_len))) return err; in hpfs_rename()
556 de.hidden = new_name[0] == '.'; in hpfs_rename()
561 if ((nde = map_dirent(new_dir, hpfs_i(new_dir)->i_dno, new_name, new_len, NULL, &qbh1))) { in hpfs_rename()
564 memcpy(nde->name, new_name, new_len); in hpfs_rename()
579 if ((r = hpfs_add_dirent(new_dir, new_name, new_len, &de))) { in hpfs_rename()
608 memcpy(fnode->name, new_name, new_len>15?15:new_len); in hpfs_rename()
/linux-6.1.9/drivers/mtd/maps/
Dpcmciamtd.c414 static void card_settings(struct pcmciamtd_dev *dev, struct pcmcia_device *p_dev, int *new_name) in card_settings() argument
453 *new_name = 1; in card_settings()
469 int new_name = 0; in pcmciamtd_config() local
473 card_settings(dev, link, &new_name); in pcmciamtd_config()
590 if(new_name) { in pcmciamtd_config()
/linux-6.1.9/fs/hostfs/
Dhostfs_kern.c742 char *old_name, *new_name; in hostfs_rename2() local
751 new_name = dentry_name(new_dentry); in hostfs_rename2()
752 if (new_name == NULL) { in hostfs_rename2()
757 err = rename_file(old_name, new_name); in hostfs_rename2()
759 err = rename2_file(old_name, new_name, flags); in hostfs_rename2()
762 __putname(new_name); in hostfs_rename2()
/linux-6.1.9/Documentation/translations/zh_CN/filesystems/
Ddebugfs.rst192 const char *new_name);
198 调用debugfs_rename()将为现有的debugfs文件重命名,可能同时切换目录。 new_name
/linux-6.1.9/Documentation/translations/zh_TW/filesystems/
Ddebugfs.rst194 const char *new_name);
200 調用debugfs_rename()將爲現有的debugfs文件重命名,可能同時切換目錄。 new_name
/linux-6.1.9/security/apparmor/
Dmount.c644 const char *old_name, *new_name = NULL, *info = NULL; in build_pivotroot() local
664 new_buffer, &new_name, &info, in build_pivotroot()
672 new_name); in build_pivotroot()
681 error = audit_mount(profile, OP_PIVOTROOT, new_name, old_name, in build_pivotroot()
/linux-6.1.9/fs/ocfs2/
Docfs2_trace.h2264 int new_len, const char *new_name),
2266 old_len, old_name, new_len, new_name),
2275 __string(new_name, new_name)
2285 __assign_str(new_name, new_name);
2291 __entry->new_len, __get_str(new_name))
2297 TP_PROTO(int new_len, const char *new_name),
2298 TP_ARGS(new_len, new_name),
2301 __string(new_name, new_name)
2305 __assign_str(new_name, new_name);
2307 TP_printk("%.*s", __entry->new_len, __get_str(new_name))
/linux-6.1.9/fs/coda/
Dcoda_psdev.h74 const char *new_name);
/linux-6.1.9/fs/debugfs/
Dinode.c812 struct dentry *new_dir, const char *new_name) in debugfs_rename() argument
833 dentry = lookup_one_len(new_name, new_dir, strlen(new_name)); in debugfs_rename()

123