/linux-4.19.296/drivers/pci/ |
D | slot.c | 144 char *new_name; in make_slot_name() local 147 new_name = kstrdup(name, GFP_KERNEL); in make_slot_name() 148 if (!new_name) in make_slot_name() 162 dup_slot = kset_find_obj(pci_slots_kset, new_name); in make_slot_name() 169 kfree(new_name); in make_slot_name() 170 new_name = kmalloc(len, GFP_KERNEL); in make_slot_name() 171 if (!new_name) in make_slot_name() 174 sprintf(new_name, "%s-%d", name, dup++); in make_slot_name() 177 return new_name; in make_slot_name()
|
/linux-4.19.296/fs/f2fs/ |
D | dir.c | 358 const struct qstr *new_name, const struct qstr *orig_name, in f2fs_init_inode_metadata() argument 401 if (new_name) { in f2fs_init_inode_metadata() 402 init_dent_inode(new_name, page); in f2fs_init_inode_metadata() 491 int f2fs_add_regular_entry(struct inode *dir, const struct qstr *new_name, in f2fs_add_regular_entry() argument 508 slots = GET_DENTRY_SLOTS(new_name->len); in f2fs_add_regular_entry() 509 dentry_hash = f2fs_dentry_hash(new_name, NULL); in f2fs_add_regular_entry() 558 page = f2fs_init_inode_metadata(inode, dir, new_name, in f2fs_add_regular_entry() 567 f2fs_update_dentry(ino, mode, &d, new_name, dentry_hash, bit_pos); in f2fs_add_regular_entry() 594 struct qstr new_name; in f2fs_add_dentry() local 597 new_name.name = fname_name(fname); in f2fs_add_dentry() [all …]
|
D | inline.c | 453 struct qstr new_name; in f2fs_add_inline_entries() local 469 new_name.name = d.filename[bit_pos]; in f2fs_add_inline_entries() 470 new_name.len = le16_to_cpu(de->name_len); in f2fs_add_inline_entries() 475 err = f2fs_add_regular_entry(dir, &new_name, NULL, NULL, in f2fs_add_inline_entries() 540 int f2fs_add_inline_entry(struct inode *dir, const struct qstr *new_name, in f2fs_add_inline_entry() argument 550 int slots = GET_DENTRY_SLOTS(new_name->len); in f2fs_add_inline_entry() 572 page = f2fs_init_inode_metadata(inode, dir, new_name, in f2fs_add_inline_entry() 582 name_hash = f2fs_dentry_hash(new_name, NULL); in f2fs_add_inline_entry() 583 f2fs_update_dentry(ino, mode, &d, new_name, name_hash, bit_pos); in f2fs_add_inline_entry()
|
/linux-4.19.296/include/linux/ |
D | sysfs.h | 223 int __must_check sysfs_rename_dir_ns(struct kobject *kobj, const char *new_name, 261 const char *old_name, const char *new_name, 319 const char *new_name, const void *new_ns) in sysfs_rename_dir_ns() argument 419 const char *new_name, const void *ns) in sysfs_rename_link_ns() argument 539 const char *old_name, const char *new_name) in sysfs_rename_link() argument 541 return sysfs_rename_link_ns(kobj, target, old_name, new_name, NULL); in sysfs_rename_link()
|
D | kernfs.h | 177 const char *new_name); 352 const char *new_name, const void *new_ns); 451 const char *new_name, const void *new_ns) in kernfs_rename_ns() argument 544 const char *new_name) in kernfs_rename() argument 546 return kernfs_rename_ns(kn, new_parent, new_name, NULL); in kernfs_rename()
|
D | fsnotify.h | 74 const unsigned char *new_name = moved->d_name.name; in fsnotify_move() local 86 fsnotify(new_dir, new_dir_mask, source, FSNOTIFY_EVENT_INODE, new_name, in fsnotify_move()
|
D | coda_psdev.h | 66 const char *new_name);
|
D | debugfs.h | 110 struct dentry *new_dir, const char *new_name); 266 struct dentry *new_dir, char *new_name) in debugfs_rename() argument
|
D | kobject.h | 109 extern int __must_check kobject_rename(struct kobject *, const char *new_name);
|
/linux-4.19.296/fs/sysfs/ |
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-4.19.296/fs/kernfs/ |
D | dir.c | 1538 const char *new_name, const void *new_ns) in kernfs_rename_ns() argument 1557 (strcmp(kn->name, new_name) == 0)) in kernfs_rename_ns() 1561 if (kernfs_find_ns(new_parent, new_name, new_ns)) in kernfs_rename_ns() 1565 if (strcmp(kn->name, new_name) != 0) { in kernfs_rename_ns() 1567 new_name = kstrdup_const(new_name, GFP_KERNEL); in kernfs_rename_ns() 1568 if (!new_name) in kernfs_rename_ns() 1571 new_name = NULL; in kernfs_rename_ns() 1587 if (new_name) { in kernfs_rename_ns() 1589 kn->name = new_name; in kernfs_rename_ns()
|
/linux-4.19.296/fs/hpfs/ |
D | namei.c | 516 const unsigned char *new_name = new_dentry->d_name.name; in hpfs_rename() local 532 if ((err = hpfs_chk_name(new_name, &new_len))) return err; in hpfs_rename() 551 de.hidden = new_name[0] == '.'; in hpfs_rename() 556 if ((nde = map_dirent(new_dir, hpfs_i(new_dir)->i_dno, new_name, new_len, NULL, &qbh1))) { in hpfs_rename() 559 memcpy(nde->name, new_name, new_len); in hpfs_rename() 574 if ((r = hpfs_add_dirent(new_dir, new_name, new_len, &de))) { in hpfs_rename() 603 memcpy(fnode->name, new_name, new_len>15?15:new_len); in hpfs_rename()
|
/linux-4.19.296/fs/hostfs/ |
D | hostfs_kern.c | 744 char *old_name, *new_name; in hostfs_rename2() local 753 new_name = dentry_name(new_dentry); in hostfs_rename2() 754 if (new_name == NULL) { in hostfs_rename2() 759 err = rename_file(old_name, new_name); in hostfs_rename2() 761 err = rename2_file(old_name, new_name, flags); in hostfs_rename2() 764 __putname(new_name); in hostfs_rename2()
|
/linux-4.19.296/fs/nfs/ |
D | nfstrace.h | 601 __string(new_name, new_dentry->d_name.name) 609 __assign_str(new_name, new_dentry->d_name.name); 619 __get_str(new_name) 649 __string(new_name, new_dentry->d_name.name) 658 __assign_str(new_name, new_dentry->d_name.name); 670 __get_str(new_name)
|
/linux-4.19.296/lib/ |
D | dynamic_debug.c | 852 const char *new_name; in ddebug_add_module() local 857 new_name = kstrdup_const(name, GFP_KERNEL); in ddebug_add_module() 858 if (new_name == NULL) { in ddebug_add_module() 862 dt->mod_name = new_name; in ddebug_add_module()
|
D | kobject.c | 470 int kobject_rename(struct kobject *kobj, const char *new_name) in kobject_rename() argument 498 name = dup_name = kstrdup_const(new_name, GFP_KERNEL); in kobject_rename() 504 error = sysfs_rename_dir_ns(kobj, new_name, kobject_namespace(kobj)); in kobject_rename()
|
/linux-4.19.296/fs/ocfs2/ |
D | ocfs2_trace.h | 2262 int new_len, const char *new_name), 2264 old_len, old_name, new_len, new_name), 2273 __string(new_name, new_name) 2283 __assign_str(new_name, new_name); 2289 __entry->new_len, __get_str(new_name)) 2295 TP_PROTO(int new_len, const char *new_name), 2296 TP_ARGS(new_len, new_name), 2299 __string(new_name, new_name) 2303 __assign_str(new_name, new_name); 2305 TP_printk("%.*s", __entry->new_len, __get_str(new_name))
|
/linux-4.19.296/fs/debugfs/ |
D | inode.c | 807 struct dentry *new_dir, const char *new_name) in debugfs_rename() argument 828 dentry = lookup_one_len(new_name, new_dir, strlen(new_name)); in debugfs_rename()
|
/linux-4.19.296/fs/fat/ |
D | namei_msdos.c | 428 struct inode *new_dir, unsigned char *new_name, in do_msdos_rename() argument 459 err = fat_scan(new_dir, new_name, &sinfo); in do_msdos_rename() 502 err = msdos_add_entry(new_dir, new_name, is_dir, is_hid, 0, in do_msdos_rename()
|
/linux-4.19.296/include/net/9p/ |
D | client.h | 196 struct p9_fid *newdirfid, const char *new_name);
|
/linux-4.19.296/fs/configfs/ |
D | dir.c | 1604 int configfs_rename_dir(struct config_item * item, const char *new_name) 1609 if (!strcmp(config_item_name(item), new_name)) 1620 new_dentry = lookup_one_len(new_name, parent, strlen(new_name)); 1623 error = config_item_set_name(item, "%s", new_name);
|
/linux-4.19.296/fs/coda/ |
D | dir.c | 299 const char *new_name = new_dentry->d_name.name; in coda_rename() local 309 (const char *) old_name, (const char *)new_name); in coda_rename()
|
D | upcall.c | 235 const char *new_name) in venus_rename() argument 260 memcpy((char *)(inp) + offset, new_name, new_length); in venus_rename()
|
/linux-4.19.296/fs/proc/ |
D | proc_sysctl.c | 950 char *new_name; in new_dir() local 960 new_name = (char *)(table + 2); in new_dir() 961 memcpy(new_name, name, namelen); in new_dir() 962 new_name[namelen] = '\0'; in new_dir() 963 table[0].procname = new_name; in new_dir()
|
/linux-4.19.296/drivers/hid/ |
D | hid-logitech-hidpp.c | 375 char *new_name; in hidpp_prefix_name() local 383 new_name = kzalloc(new_length, GFP_KERNEL); in hidpp_prefix_name() 384 if (!new_name) in hidpp_prefix_name() 387 snprintf(new_name, new_length, "Logitech %s", *name); in hidpp_prefix_name() 391 *name = new_name; in hidpp_prefix_name()
|