| /linux/drivers/pci/ |
| H A D | slot.c | 146 char *new_name; in make_slot_name() local 149 new_name = kstrdup(name, GFP_KERNEL); in make_slot_name() 150 if (!new_name) in make_slot_name() 164 dup_slot = kset_find_obj(pci_slots_kset, new_name); in make_slot_name() 171 kfree(new_name); in make_slot_name() 172 new_name = kmalloc(len, GFP_KERNEL); in make_slot_name() 173 if (!new_name) in make_slot_name() 176 sprintf(new_name, "%s-%d", name, dup++); in make_slot_name() 179 return new_name; in make_slot_name()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_ioctl.c | 583 char *new_name; in drm_set_client_name() local 590 new_name = memdup_user_nul(user_ptr, len); in drm_set_client_name() 591 if (IS_ERR(new_name)) in drm_set_client_name() 592 return PTR_ERR(new_name); in drm_set_client_name() 594 if (strlen(new_name) != len || in drm_set_client_name() 595 drm_validate_value_string(new_name, len) < 0) { in drm_set_client_name() 596 kfree(new_name); in drm_set_client_name() 600 new_name = NULL; in drm_set_client_name() 605 file_priv->client_name = new_name; in drm_set_client_name()
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_parent.c | 243 const struct xfs_name *new_name, in xfs_parent_replacename() argument 262 ppargs->args.new_name = new_name->name; in xfs_parent_replacename() 263 ppargs->args.new_namelen = new_name->len; in xfs_parent_replacename()
|
| H A D | xfs_da_btree.h | 58 const uint8_t *new_name; /* new attr name */ member
|
| /linux/include/linux/ |
| H A D | sysfs.h | 401 int __must_check sysfs_rename_dir_ns(struct kobject *kobj, const char *new_name, 439 const char *old_name, const char *new_name, 515 const char *new_name, const struct ns_common *new_ns) in sysfs_rename_dir_ns() argument 615 const char *new_name, const struct ns_common *ns) in sysfs_rename_link_ns() argument 784 const char *old_name, const char *new_name) in sysfs_rename_link() argument 786 return sysfs_rename_link_ns(kobj, target, old_name, new_name, NULL); in sysfs_rename_link()
|
| /linux/fs/sysfs/ |
| H 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/arch/mips/cavium-octeon/ |
| H A D | octeon-platform.c | 493 char new_name[20]; in octeon_fdt_set_phy() local 542 strscpy_pad(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/fs/afs/ |
| H A D | yfsclient.c | 1039 const struct qstr *new_name = &op->dentry_2->d_name; in yfs_fs_rename() local 1054 xdr_strlen(new_name->len), in yfs_fs_rename() 1068 bp = xdr_encode_name(bp, new_name); in yfs_fs_rename() 1072 trace_afs_make_fs_call2(call, &orig_dvp->fid, orig_name, new_name); in yfs_fs_rename() 1194 const struct qstr *new_name = &op->dentry_2->d_name; in yfs_fs_rename_replace() local 1206 xdr_strlen(new_name->len), in yfs_fs_rename_replace() 1224 bp = xdr_encode_name(bp, new_name); in yfs_fs_rename_replace() 1228 trace_afs_make_fs_call2(call, &orig_dvp->fid, orig_name, new_name); in yfs_fs_rename_replace() 1240 const struct qstr *new_name = &op->dentry_2->d_name; in yfs_fs_rename_noreplace() local 1252 xdr_strlen(new_name->len), in yfs_fs_rename_noreplace() [all …]
|
| /linux/tools/perf/util/ |
| H A D | dsos.c | 87 char *new_name = dso__filename_with_chroot(dso, dso__long_name(dso)); in dsos__read_build_ids_cb() 89 if (new_name && filename__read_build_id(new_name, &bid) > 0) { in dsos__read_build_ids_cb() 93 free(new_name); in dsos__read_build_ids_cb() 88 char *new_name = dso__filename_with_chroot(dso, dso__long_name(dso)); dsos__read_build_ids_cb() local
|
| H A D | util.c | 462 char *new_name = NULL; in filename_with_chroot() 479 if (asprintf(&new_name, "%s/%s", buf, filename) < 0) in filename_with_chroot() 482 return new_name; 460 char *new_name = NULL; filename_with_chroot() local
|
| H A D | data-convert-bt.c | 959 char *new_name = NULL; 977 new_name = malloc(len); 978 if (!new_name) 982 snprintf(new_name, len, "_%s", name); 984 snprintf(new_name, len, "%s_dupl_%d", orig_name, dup); 989 return new_name; 960 char *new_name = NULL; global() local
|
| H A D | evsel.c | 4163 char *new_name; in evsel__store_ids() 4175 if (asprintf(&new_name, "%s%su", name, sep) < 0) in evsel__zero_per_pkg() 4179 evsel->name = new_name; in evsel__zero_per_pkg() 4190 char *new_name; in evsel__is_hybrid() 4198 if (asprintf(&new_name, "%s%sH", name, sep) < 0) in evsel__leader() 4202 evsel->name = new_name; in evsel__has_leader() 4676 char *new_name; 4705 ret = asprintf(&new_name, "%s/%s", pmu_name, config + 1); 4710 ret = asprintf(&new_name, "%s/%.*s/%s", pmu_name, len, name, config + 2); 4713 ret = asprintf(&new_name, " 3811 char *new_name; evsel__fallback() local 3838 char *new_name; evsel__fallback() local 4324 char *new_name; evsel__uniquify_counter() local [all...] |
| H A D | dso.c | 588 char *new_name; in dso__get_filename() 601 new_name = dso__filename_with_chroot(dso, name); in dso__get_filename() 602 if (!new_name) in dso__get_filename() 606 name = new_name; in dso__get_filename() 579 char *new_name; dso__get_filename() local
|
| /linux/drivers/mtd/maps/ |
| H 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/fs/xfs/ |
| H A D | xfs_attr_item.h | 16 struct kvec new_name; /* PPTR_REPLACE only */ member
|
| /linux/sound/soc/ |
| H A D | soc-pcm.c | 2998 char new_name[64]; in soc_create_pcm() local 3003 snprintf(new_name, sizeof(new_name), "codec2codec(%s)", in soc_create_pcm() 3006 ret = snd_pcm_new_internal(rtd->card->snd_card, new_name, rtd->id, in soc_create_pcm() 3009 snprintf(new_name, sizeof(new_name), "(%s)", in soc_create_pcm() 3012 ret = snd_pcm_new_internal(rtd->card->snd_card, new_name, rtd->id, in soc_create_pcm() 3016 snprintf(new_name, sizeof(new_name), "%s (*)", in soc_create_pcm() 3019 snprintf(new_name, sizeof(new_name), "%s %s-%d", in soc_create_pcm() 3023 ret = snd_pcm_new(rtd->card->snd_card, new_name, rtd->id, playback, in soc_create_pcm() 3028 "can't create pcm %s for dailink %s\n", new_name, rtd->dai_link->name); in soc_create_pcm() 3030 dev_dbg(rtd->card->dev, "ASoC: registered pcm #%d %s\n", rtd->id, new_name); in soc_create_pcm()
|
| /linux/security/apparmor/ |
| H A D | mount.c | 613 const char *old_name, *new_name = NULL; in build_pivotroot() local 633 new_buffer, &new_name, &ad->info, in build_pivotroot() 637 ad->name = new_name; in build_pivotroot() 641 new_name); in build_pivotroot()
|
| /linux/Documentation/translations/zh_CN/filesystems/ |
| H A D | debugfs.rst | 192 const char *new_name); 198 调用debugfs_rename()将为现有的debugfs文件重命名,可能同时切换目录。 new_name
|
| /linux/Documentation/translations/zh_TW/filesystems/ |
| H A D | debugfs.rst | 193 const char *new_name); 199 調用debugfs_rename()將爲現有的debugfs文件重命名,可能同時切換目錄。 new_name
|
| /linux/fs/coda/ |
| H A D | coda_psdev.h | 74 const char *new_name);
|
| /linux/tools/lib/bpf/ |
| H A D | btf_dump.c | 1644 char *old_name, *new_name; in btf_dump_name_dups() local 1648 new_name = strdup(orig_name); in btf_dump_name_dups() 1649 if (!new_name) in btf_dump_name_dups() 1655 err = hashmap__set(name_map, new_name, dup_cnt, &old_name, NULL); in btf_dump_name_dups() 1657 free(new_name); in btf_dump_name_dups() 1687 char new_name[max_len]; in btf_dump_resolve_name() local 1689 snprintf(new_name, max_len, "%s___%zu", orig_name, dup_cnt); in btf_dump_resolve_name() 1690 *cached_name = strdup(new_name); in btf_dump_resolve_name()
|
| /linux/drivers/mtd/ubi/ |
| H A D | cdev.c | 754 memcpy(re->new_name, name, name_len); in rename_volumes() 776 !memcmp(re->new_name, re1->desc->vol->name, in rename_volumes() 790 desc = ubi_open_volume_nm(ubi->ubi_num, re->new_name, in rename_volumes() 800 re->new_name, err); in rename_volumes()
|
| /linux/scripts/kconfig/ |
| H A D | symbol.c | 922 char *new_name; in sym_lookup() local 942 new_name = xstrdup(name); in sym_lookup() 944 new_name = NULL; in sym_lookup() 950 symbol->name = new_name; in sym_lookup()
|
| /linux/fs/nfs/ |
| H A D | nfstrace.h | 839 __string(new_name, new_dentry->d_name.name) 847 __assign_str(new_name); 857 __get_str(new_name) 887 __string(new_name, new_dentry->d_name.name) 896 __assign_str(new_name); 908 __get_str(new_name)
|
| /linux/drivers/scsi/aic7xxx/ |
| H A D | aic7xxx_osm.c | 1081 char *new_name; in ahc_linux_register_host() local 1105 new_name = kmalloc(strlen(buf) + 1, GFP_ATOMIC); in ahc_linux_register_host() 1106 if (new_name != NULL) { in ahc_linux_register_host() 1107 strcpy(new_name, buf); in ahc_linux_register_host() 1108 ahc_set_name(ahc, new_name); in ahc_linux_register_host()
|