/linux-6.3-rc2/fs/ksmbd/ |
A D | misc.c | 289 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.3-rc2/drivers/pci/ |
A D | slot.c | 109 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.3-rc2/drivers/power/supply/ |
A D | power_supply_hwmon.c | 383 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.3-rc2/tools/perf/util/ |
A D | print-events.c | 233 char new_name[128]; in print_hwcache_events() local 234 snprintf(new_name, sizeof(new_name), in print_hwcache_events() 236 strlist__add(evt_name_list, new_name); in print_hwcache_events()
|
A D | dsos.c | 94 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()
|
A D | util.c | 482 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()
|
A D | data-convert-bt.c | 947 char *new_name = NULL; local 965 new_name = malloc(len); 966 if (!new_name) 970 snprintf(new_name, len, "_%s", name); 972 snprintf(new_name, len, "%s_dupl_%d", orig_name, dup); 977 return new_name;
|
/linux-6.3-rc2/arch/mips/cavium-octeon/ |
A D | octeon-platform.c | 491 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.3-rc2/sound/soc/ |
A D | soc-compress.c | 554 char new_name[64]; in snd_soc_new_compress() local 612 snprintf(new_name, sizeof(new_name), "(%s)", in snd_soc_new_compress() 615 ret = snd_pcm_new_internal(rtd->card->snd_card, new_name, num, in snd_soc_new_compress() 633 snprintf(new_name, sizeof(new_name), "%s %s-%d", in snd_soc_new_compress() 649 new_name, compr); in snd_soc_new_compress()
|
A D | soc-pcm.c | 2836 char new_name[64]; in soc_create_pcm() local 2841 snprintf(new_name, sizeof(new_name), "codec2codec(%s)", in soc_create_pcm() 2844 ret = snd_pcm_new_internal(rtd->card->snd_card, new_name, num, in soc_create_pcm() 2847 snprintf(new_name, sizeof(new_name), "(%s)", in soc_create_pcm() 2850 ret = snd_pcm_new_internal(rtd->card->snd_card, new_name, num, in soc_create_pcm() 2854 snprintf(new_name, sizeof(new_name), "%s (*)", in soc_create_pcm() 2857 snprintf(new_name, sizeof(new_name), "%s %s-%d", in soc_create_pcm() 2861 ret = snd_pcm_new(rtd->card->snd_card, new_name, num, playback, in soc_create_pcm() 2866 new_name, rtd->dai_link->name, ret); in soc_create_pcm() 2869 dev_dbg(rtd->card->dev, "ASoC: registered pcm #%d %s\n",num, new_name); in soc_create_pcm()
|
/linux-6.3-rc2/include/linux/ |
A D | kernfs.h | 242 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()
|
A D | sysfs.h | 263 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()
|
A D | fsnotify.h | 148 const struct qstr *new_name = &moved->d_name; in fsnotify_move() local 163 new_dir, new_name, fs_cookie); in fsnotify_move()
|
A D | debugfs.h | 115 struct dentry *new_dir, const char *new_name); 273 struct dentry *new_dir, char *new_name)
|
/linux-6.3-rc2/fs/sysfs/ |
A D | dir.c | 105 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.3-rc2/fs/kernfs/ |
A D | dir.c | 1681 const char *new_name, const void *new_ns) in kernfs_rename_ns() argument 1702 (strcmp(kn->name, new_name) == 0)) in kernfs_rename_ns() 1706 if (kernfs_find_ns(new_parent, new_name, new_ns)) in kernfs_rename_ns() 1710 if (strcmp(kn->name, new_name) != 0) { in kernfs_rename_ns() 1712 new_name = kstrdup_const(new_name, GFP_KERNEL); in kernfs_rename_ns() 1713 if (!new_name) in kernfs_rename_ns() 1716 new_name = NULL; in kernfs_rename_ns() 1732 if (new_name) { in kernfs_rename_ns() 1734 kn->name = new_name; in kernfs_rename_ns()
|
/linux-6.3-rc2/fs/hpfs/ |
A D | namei.c | 521 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.3-rc2/drivers/mtd/maps/ |
A D | pcmciamtd.c | 414 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.3-rc2/fs/hostfs/ |
A D | hostfs_kern.c | 743 char *old_name, *new_name; in hostfs_rename2() local 752 new_name = dentry_name(new_dentry); in hostfs_rename2() 753 if (new_name == NULL) { in hostfs_rename2() 758 err = rename_file(old_name, new_name); in hostfs_rename2() 760 err = rename2_file(old_name, new_name, flags); in hostfs_rename2() 763 __putname(new_name); in hostfs_rename2()
|
/linux-6.3-rc2/Documentation/translations/zh_CN/filesystems/ |
A D | debugfs.rst | 192 const char *new_name); 198 调用debugfs_rename()将为现有的debugfs文件重命名,可能同时切换目录。 new_name
|
/linux-6.3-rc2/Documentation/translations/zh_TW/filesystems/ |
A D | debugfs.rst | 194 const char *new_name); 200 調用debugfs_rename()將爲現有的debugfs文件重命名,可能同時切換目錄。 new_name
|
/linux-6.3-rc2/security/apparmor/ |
A D | mount.c | 635 const char *old_name, *new_name = NULL, *info = NULL; in build_pivotroot() local 655 new_buffer, &new_name, &info, in build_pivotroot() 663 new_name); in build_pivotroot() 672 error = audit_mount(profile, OP_PIVOTROOT, new_name, old_name, in build_pivotroot()
|
/linux-6.3-rc2/fs/ocfs2/ |
A D | ocfs2_trace.h | 2264 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.3-rc2/fs/debugfs/ |
A D | inode.c | 812 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()
|
/linux-6.3-rc2/fs/coda/ |
A D | coda_psdev.h | 74 const char *new_name);
|