Home
last modified time | relevance | path

Searched refs:kobject_add (Results 1 – 22 of 22) sorted by relevance

/Linux-v4.19/drivers/md/bcache/
Dstats.c99 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()
Dsuper.c1301 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/
Dblk-mq-sysfs.c238 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()
Dblk-sysfs.c923 ret = kobject_add(&q->kobj, kobject_get(&dev->kobj), "%s", "queue"); in blk_register_queue()
Delevator.c843 error = kobject_add(&e->kobj, &q->kobj, "%s", "iosched"); in elv_register_queue()
/Linux-v4.19/Documentation/
Dkobject.txt125 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/
Dkobj.c136 rc = kobject_add(&np->kobj, parent, "%s", name); in __of_attach_node_sysfs()
/Linux-v4.19/include/linux/
Dkobject.h96 int kobject_add(struct kobject *kobj, struct kobject *parent,
/Linux-v4.19/drivers/firmware/efi/
Druntime-map.c128 ret = kobject_add(&entry->kobj, NULL, "%d", nr); in add_sysfs_runtime_map_entry()
/Linux-v4.19/lib/
Dkobject.c410 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/
Dmemmap.c199 if (kobject_add(&entry->kobj, NULL, "%d", map_entries_nr++)) in add_sysfs_fw_map_entry()
/Linux-v4.19/arch/arm64/kernel/
Dcpuinfo.c259 rc = kobject_add(&info->kobj, &dev->kobj, "regs"); in cpuid_cpu_online()
/Linux-v4.19/arch/x86/kernel/cpu/mcheck/
Dmce_amd.c1206 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/
Dopal-elog.c223 rc = kobject_add(&elog->kobj, NULL, "0x%llx", id); in create_elog_obj()
Dopal-dump.c350 rc = kobject_add(&dump->kobj, NULL, "0x%x-0x%x", type, id); in create_dump_obj()
/Linux-v4.19/drivers/uio/
Duio.c312 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/
Dpcrypt.c397 ret = kobject_add(&pinst->kobj, NULL, name); in pcrypt_sysfs_add()
/Linux-v4.19/sound/hda/
Dhdac_sysfs.c348 err = kobject_add(kobj, parent, "%02x", nid); in add_widget_node()
/Linux-v4.19/kernel/irq/
Dirqdesc.c291 if (kobject_add(&desc->kobj, irq_kobj_base, "%d", irq)) in irq_sysfs_add()
/Linux-v4.19/drivers/base/
Dcore.c1554 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/
Dmd.c2232 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/
Dextent-tree.c9762 ret = kobject_add(&rkobj->kobj, &space_info->kobj, in btrfs_add_raid_kobjects()