Home
last modified time | relevance | path

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

1234

/linux-6.12.1/fs/smb/server/
Dmisc.c290 char *new_name; in convert_to_unix_name() local
297 new_name = kmalloc(path_len + name_len + 2, GFP_KERNEL); in convert_to_unix_name()
298 if (!new_name) in convert_to_unix_name()
299 return new_name; in convert_to_unix_name()
301 memcpy(new_name, share->path, path_len); in convert_to_unix_name()
302 if (new_name[path_len - 1] != '/') { in convert_to_unix_name()
303 new_name[path_len] = '/'; in convert_to_unix_name()
307 memcpy(new_name + path_len + no_slash, name, name_len); in convert_to_unix_name()
309 new_name[path_len] = 0x00; in convert_to_unix_name()
310 return new_name; in convert_to_unix_name()
/linux-6.12.1/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.12.1/fs/xfs/
Dxfs_attr_item.c77 const void *new_name, in xfs_attri_log_nameval_alloc() argument
100 nv->new_name.i_addr = nv->name.i_addr + name_len; in xfs_attri_log_nameval_alloc()
101 nv->new_name.i_len = new_name_len; in xfs_attri_log_nameval_alloc()
102 memcpy(nv->new_name.i_addr, new_name, new_name_len); in xfs_attri_log_nameval_alloc()
104 nv->new_name.i_addr = NULL; in xfs_attri_log_nameval_alloc()
105 nv->new_name.i_len = 0; in xfs_attri_log_nameval_alloc()
107 nv->new_name.i_type = XLOG_REG_TYPE_ATTR_NEWNAME; in xfs_attri_log_nameval_alloc()
175 if (nv->new_name.i_len) { in xfs_attri_item_size()
177 *nbytes += xlog_calc_iovec_len(nv->new_name.i_len); in xfs_attri_item_size()
218 if (nv->new_name.i_len > 0) in xfs_attri_item_format()
[all …]
Dxfs_attr_item.h16 struct xfs_log_iovec new_name; /* PPTR_REPLACE only */ member
/linux-6.12.1/drivers/power/supply/
Dpower_supply_hwmon.c409 char *new_name; in power_supply_add_hwmon_sysfs() local
411 new_name = devm_kstrdup(dev, name, GFP_KERNEL); in power_supply_add_hwmon_sysfs()
412 if (!new_name) { in power_supply_add_hwmon_sysfs()
416 strreplace(new_name, '-', '_'); in power_supply_add_hwmon_sysfs()
417 name = new_name; in power_supply_add_hwmon_sysfs()
/linux-6.12.1/fs/xfs/libxfs/
Dxfs_parent.c239 const struct xfs_name *new_name, in xfs_parent_replacename() argument
253 ppargs->args.new_name = new_name->name; in xfs_parent_replacename()
254 ppargs->args.new_namelen = new_name->len; in xfs_parent_replacename()
Dxfs_parent.h91 struct xfs_inode *new_dp, const struct xfs_name *new_name,
/linux-6.12.1/arch/mips/cavium-octeon/
Docteon-platform.c492 char new_name[20]; in octeon_fdt_set_phy() local
541 memset(new_name, 0, sizeof(new_name)); in octeon_fdt_set_phy()
542 strcpy(new_name, "marvell,88e1145"); in octeon_fdt_set_phy()
545 if (p && current_len >= strlen(new_name)) in octeon_fdt_set_phy()
547 "compatible", new_name, current_len); in octeon_fdt_set_phy()
556 snprintf(new_name, sizeof(new_name), "ethernet-phy@%x", phy_addr); in octeon_fdt_set_phy()
559 if (p && current_len == strlen(new_name)) in octeon_fdt_set_phy()
560 fdt_set_name(initial_boot_params, phy, new_name); in octeon_fdt_set_phy()
/linux-6.12.1/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()
633 snprintf(new_name, sizeof(new_name), "%s %s-%d", in snd_soc_new_compress()
649 new_name, compr); in snd_soc_new_compress()
Dsoc-pcm.c2943 char new_name[64]; in soc_create_pcm() local
2948 snprintf(new_name, sizeof(new_name), "codec2codec(%s)", in soc_create_pcm()
2951 ret = snd_pcm_new_internal(rtd->card->snd_card, new_name, num, in soc_create_pcm()
2954 snprintf(new_name, sizeof(new_name), "(%s)", in soc_create_pcm()
2957 ret = snd_pcm_new_internal(rtd->card->snd_card, new_name, num, in soc_create_pcm()
2961 snprintf(new_name, sizeof(new_name), "%s (*)", in soc_create_pcm()
2964 snprintf(new_name, sizeof(new_name), "%s %s-%d", in soc_create_pcm()
2968 ret = snd_pcm_new(rtd->card->snd_card, new_name, num, playback, in soc_create_pcm()
2973 new_name, rtd->dai_link->name, ret); in soc_create_pcm()
2976 dev_dbg(rtd->card->dev, "ASoC: registered pcm #%d %s\n",num, new_name); in soc_create_pcm()
/linux-6.12.1/include/linux/
Dkernfs.h244 const char *new_name);
445 const char *new_name, const void *new_ns);
549 const char *new_name, const void *new_ns) in kernfs_rename_ns() argument
630 const char *new_name) in kernfs_rename() argument
632 return kernfs_rename_ns(kn, new_parent, new_name, NULL); in kernfs_rename()
Dsysfs.h394 int __must_check sysfs_rename_dir_ns(struct kobject *kobj, const char *new_name,
432 const char *old_name, const char *new_name,
508 const char *new_name, const void *new_ns) in sysfs_rename_dir_ns() argument
608 const char *new_name, const void *ns) in sysfs_rename_link_ns() argument
777 const char *old_name, const char *new_name) in sysfs_rename_link() argument
779 return sysfs_rename_link_ns(kobj, target, old_name, new_name, NULL); in sysfs_rename_link()
Dfsnotify.h219 const struct qstr *new_name = &moved->d_name; in fsnotify_move() local
234 new_dir, new_name, fs_cookie); in fsnotify_move()
/linux-6.12.1/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.12.1/fs/kernfs/
Ddir.c1716 const char *new_name, const void *new_ns) in kernfs_rename_ns() argument
1737 (strcmp(kn->name, new_name) == 0)) in kernfs_rename_ns()
1741 if (kernfs_find_ns(new_parent, new_name, new_ns)) in kernfs_rename_ns()
1745 if (strcmp(kn->name, new_name) != 0) { in kernfs_rename_ns()
1747 new_name = kstrdup_const(new_name, GFP_KERNEL); in kernfs_rename_ns()
1748 if (!new_name) in kernfs_rename_ns()
1751 new_name = NULL; in kernfs_rename_ns()
1767 if (new_name) { in kernfs_rename_ns()
1769 kn->name = new_name; in kernfs_rename_ns()
/linux-6.12.1/fs/hpfs/
Dnamei.c503 const unsigned char *new_name = new_dentry->d_name.name; in hpfs_rename() local
519 if ((err = hpfs_chk_name(new_name, &new_len))) return err; in hpfs_rename()
538 de.hidden = new_name[0] == '.'; in hpfs_rename()
543 if ((nde = map_dirent(new_dir, hpfs_i(new_dir)->i_dno, new_name, new_len, NULL, &qbh1))) { in hpfs_rename()
546 memcpy(nde->name, new_name, new_len); in hpfs_rename()
561 if ((r = hpfs_add_dirent(new_dir, new_name, new_len, &de))) { in hpfs_rename()
590 memcpy(fnode->name, new_name, new_len>15?15:new_len); in hpfs_rename()
/linux-6.12.1/tools/perf/util/
Ddsos.c87 char *new_name = dso__filename_with_chroot(dso, dso__long_name(dso)); in dsos__read_build_ids_cb() local
89 if (new_name && filename__read_build_id(new_name, dso__bid(dso)) > 0) { in dsos__read_build_ids_cb()
93 free(new_name); in dsos__read_build_ids_cb()
Dutil.c490 char *new_name = NULL; in filename_with_chroot() local
507 if (asprintf(&new_name, "%s/%s", buf, filename) < 0) in filename_with_chroot()
510 return new_name; in filename_with_chroot()
Ddata-convert-bt.c947 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.12.1/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.12.1/fs/hostfs/
Dhostfs_kern.c756 char *old_name, *new_name; in hostfs_rename2() local
765 new_name = dentry_name(new_dentry); in hostfs_rename2()
766 if (new_name == NULL) { in hostfs_rename2()
771 err = rename_file(old_name, new_name); in hostfs_rename2()
773 err = rename2_file(old_name, new_name, flags); in hostfs_rename2()
776 __putname(new_name); in hostfs_rename2()
/linux-6.12.1/security/apparmor/
Dmount.c673 const char *old_name, *new_name = NULL, *info = NULL; in build_pivotroot() local
693 new_buffer, &new_name, &info, in build_pivotroot()
701 new_name); in build_pivotroot()
710 error = audit_mount(subj_cred, profile, OP_PIVOTROOT, new_name, in build_pivotroot()
/linux-6.12.1/Documentation/translations/zh_TW/filesystems/
Ddebugfs.rst193 const char *new_name);
199 調用debugfs_rename()將爲現有的debugfs文件重命名,可能同時切換目錄。 new_name
/linux-6.12.1/Documentation/translations/zh_CN/filesystems/
Ddebugfs.rst192 const char *new_name);
198 调用debugfs_rename()将为现有的debugfs文件重命名,可能同时切换目录。 new_name
/linux-6.12.1/fs/ocfs2/
Docfs2_trace.h2263 int new_len, const char *new_name),
2265 old_len, old_name, new_len, new_name),
2274 __string(new_name, new_name)
2284 __assign_str(new_name);
2290 __entry->new_len, __get_str(new_name))
2296 TP_PROTO(int new_len, const char *new_name),
2297 TP_ARGS(new_len, new_name),
2300 __string(new_name, new_name)
2304 __assign_str(new_name);
2306 TP_printk("%.*s", __entry->new_len, __get_str(new_name))

1234