/Linux-v4.19/drivers/md/bcache/ |
D | stats.c | 99 int ret = kobject_add(&acc->total.kobj, parent, in bch_cache_accounting_add_kobjs() 101 ret = ret ?: kobject_add(&acc->five_minute.kobj, parent, in bch_cache_accounting_add_kobjs() 103 ret = ret ?: kobject_add(&acc->hour.kobj, parent, in bch_cache_accounting_add_kobjs() 105 ret = ret ?: kobject_add(&acc->day.kobj, parent, in bch_cache_accounting_add_kobjs()
|
D | super.c | 1301 if (kobject_add(&dc->disk.kobj, &part_to_dev(bdev->bd_part)->kobj, in register_bdev() 1376 if (kobject_add(&d->kobj, &disk_to_dev(d->disk)->kobj, "bcache")) in flash_dev_run() 1977 if (kobject_add(&c->kobj, bcache_kobj, "%pU", c->sb.set_uuid) || in register_cache_set() 1978 kobject_add(&c->internal, &c->kobj, "internal")) in register_cache_set() 2120 if (kobject_add(&ca->kobj, in register_cache()
|
/Linux-v4.19/block/ |
D | blk-mq-sysfs.c | 238 ret = kobject_add(&hctx->kobj, &q->mq_kobj, "%u", hctx->queue_num); in blk_mq_register_hctx() 243 ret = kobject_add(&ctx->kobj, &hctx->kobj, "cpu%u", ctx->cpu); in blk_mq_register_hctx() 306 ret = kobject_add(&q->mq_kobj, kobject_get(&dev->kobj), "%s", "mq"); in __blk_mq_register_dev()
|
D | blk-sysfs.c | 923 ret = kobject_add(&q->kobj, kobject_get(&dev->kobj), "%s", "queue"); in blk_register_queue()
|
D | elevator.c | 843 error = kobject_add(&e->kobj, &q->kobj, "%s", "iosched"); in elv_register_queue()
|
/Linux-v4.19/Documentation/ |
D | kobject.txt | 125 register the kobject with sysfs, the function kobject_add() must be called:: 127 int kobject_add(struct kobject *kobj, struct kobject *parent, 132 kobj->kset must be assigned before calling kobject_add(). If a kset is 134 NULL in the call to kobject_add() and then the kobject's parent will be the 163 kobject_add() functions described above. 263 Once you registered your kobject via kobject_add(), you must never use 390 that this task is handled by kobject_add(). When a kobject is passed to 391 kobject_add(), its kset member should point to the kset to which the 392 kobject will belong. kobject_add() will handle the rest.
|
/Linux-v4.19/drivers/of/ |
D | kobj.c | 136 rc = kobject_add(&np->kobj, parent, "%s", name); in __of_attach_node_sysfs()
|
/Linux-v4.19/include/linux/ |
D | kobject.h | 96 int kobject_add(struct kobject *kobj, struct kobject *parent,
|
/Linux-v4.19/drivers/firmware/efi/ |
D | runtime-map.c | 128 ret = kobject_add(&entry->kobj, NULL, "%d", nr); in add_sysfs_runtime_map_entry()
|
/Linux-v4.19/lib/ |
D | kobject.c | 410 int kobject_add(struct kobject *kobj, struct kobject *parent, in kobject_add() function 431 EXPORT_SYMBOL(kobject_add); 769 retval = kobject_add(kobj, parent, "%s", name); in kobject_create_and_add()
|
/Linux-v4.19/drivers/firmware/ |
D | memmap.c | 199 if (kobject_add(&entry->kobj, NULL, "%d", map_entries_nr++)) in add_sysfs_fw_map_entry()
|
/Linux-v4.19/arch/arm64/kernel/ |
D | cpuinfo.c | 259 rc = kobject_add(&info->kobj, &dev->kobj, "regs"); in cpuid_cpu_online()
|
/Linux-v4.19/arch/x86/kernel/cpu/mcheck/ |
D | mce_amd.c | 1206 err = kobject_add(&b->blocks->kobj, b->kobj, b->blocks->kobj.name); in __threshold_add_blocks() 1212 err = kobject_add(&pos->kobj, b->kobj, pos->kobj.name); in __threshold_add_blocks() 1241 err = kobject_add(b->kobj, &dev->kobj, name); in threshold_create_bank()
|
/Linux-v4.19/arch/powerpc/platforms/powernv/ |
D | opal-elog.c | 223 rc = kobject_add(&elog->kobj, NULL, "0x%llx", id); in create_elog_obj()
|
D | opal-dump.c | 350 rc = kobject_add(&dump->kobj, NULL, "0x%x-0x%x", type, id); in create_dump_obj()
|
/Linux-v4.19/drivers/uio/ |
D | uio.c | 312 ret = kobject_add(&map->kobj, idev->map_dir, "map%d", mi); in uio_dev_add_attributes() 341 ret = kobject_add(&portio->kobj, idev->portio_dir, in uio_dev_add_attributes()
|
/Linux-v4.19/crypto/ |
D | pcrypt.c | 397 ret = kobject_add(&pinst->kobj, NULL, name); in pcrypt_sysfs_add()
|
/Linux-v4.19/sound/hda/ |
D | hdac_sysfs.c | 348 err = kobject_add(kobj, parent, "%02x", nid); in add_widget_node()
|
/Linux-v4.19/kernel/irq/ |
D | irqdesc.c | 291 if (kobject_add(&desc->kobj, irq_kobj_base, "%d", irq)) in irq_sysfs_add()
|
/Linux-v4.19/drivers/base/ |
D | core.c | 1554 retval = kobject_add(&dir->kobj, parent_kobj, "%s", class->name); in class_dir_create_and_add() 1879 error = kobject_add(&dev->kobj, dev->kobj.parent, NULL); in device_add()
|
/Linux-v4.19/drivers/md/ |
D | md.c | 2232 if ((err = kobject_add(&rdev->kobj, &mddev->kobj, "dev-%s", b))) in bind_rdev_to_array() 5361 error = kobject_add(&mddev->kobj, &disk_to_dev(disk)->kobj, "%s", "md"); in md_alloc()
|
/Linux-v4.19/fs/btrfs/ |
D | extent-tree.c | 9762 ret = kobject_add(&rkobj->kobj, &space_info->kobj, in btrfs_add_raid_kobjects()
|