Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/md/bcache/
Dstats.c230 kobject_init(&acc->total.kobj, &bch_stats_ktype); in bch_cache_accounting_init()
231 kobject_init(&acc->five_minute.kobj, &bch_stats_ktype); in bch_cache_accounting_init()
232 kobject_init(&acc->hour.kobj, &bch_stats_ktype); in bch_cache_accounting_init()
233 kobject_init(&acc->day.kobj, &bch_stats_ktype); in bch_cache_accounting_init()
Dsuper.c1133 kobject_init(&dc->disk.kobj, &bch_cached_dev_ktype); in cached_dev_init()
1255 kobject_init(&d->kobj, &bch_flash_dev_ktype); in flash_dev_run()
1500 kobject_init(&c->kobj, &bch_cache_set_ktype); in bch_cache_set_alloc()
1501 kobject_init(&c->internal, &bch_cache_set_internal_ktype); in bch_cache_set_alloc()
1845 kobject_init(&ca->kobj, &bch_cache_ktype); in cache_alloc()
/linux-4.1.27/block/
Dblk-mq-sysfs.c406 kobject_init(&q->mq_kobj, &blk_mq_ktype); in blk_mq_sysfs_init()
409 kobject_init(&hctx->kobj, &blk_mq_hw_ktype); in blk_mq_sysfs_init()
412 kobject_init(&ctx->kobj, &blk_mq_ctx_ktype); in blk_mq_sysfs_init()
Delevator.c163 kobject_init(&eq->kobj, &elv_ktype); in elevator_alloc()
Dblk-core.c644 kobject_init(&q->kobj, &blk_queue_ktype); in blk_alloc_queue_node()
/linux-4.1.27/lib/
Dkobject.c314 void kobject_init(struct kobject *kobj, struct kobj_type *ktype) in kobject_init() function
341 EXPORT_SYMBOL(kobject_init);
423 kobject_init(kobj, ktype); in kobject_init_and_add()
710 kobject_init(kobj, &dynamic_kobj_ktype); in kobject_create()
/linux-4.1.27/Documentation/
Dkobject.txt117 of the internal fields are setup with a (mandatory) call to kobject_init():
119 void kobject_init(struct kobject *kobj, struct kobj_type *ktype);
122 must have an associated kobj_type. After calling kobject_init(), to
159 The arguments are the same as the individual kobject_init() and
196 reference count and, possibly, free the object. Note that kobject_init()
256 is good practice to always use kobject_put() after kobject_init() to avoid
297 call kobject_init() or kobject_init_and_add().
/linux-4.1.27/include/linux/
Dkobject.h91 extern void kobject_init(struct kobject *kobj, struct kobj_type *ktype);
Dof.h88 kobject_init(&node->kobj, &of_node_ktype); in of_node_init()
/linux-4.1.27/fs/
Dchar_dev.c525 kobject_init(&p->kobj, &ktype_cdev_dynamic); in cdev_alloc()
542 kobject_init(&cdev->kobj, &ktype_cdev_default); in cdev_init()
/linux-4.1.27/drivers/firmware/efi/
Druntime-map.c130 kobject_init(&entry->kobj, &map_ktype); in add_sysfs_runtime_map_entry()
/linux-4.1.27/drivers/firmware/
Dmemmap.c158 kobject_init(&entry->kobj, &memmap_ktype); in firmware_map_add_entry()
/linux-4.1.27/arch/powerpc/platforms/powernv/
Dopal-elog.c196 kobject_init(&elog->kobj, &elog_ktype); in create_elog_obj()
Dopal-dump.c333 kobject_init(&dump->kobj, &dump_ktype); in create_dump_obj()
/linux-4.1.27/drivers/uio/
Duio.c280 kobject_init(&map->kobj, &map_attr_type); in uio_dev_add_attributes()
305 kobject_init(&portio->kobj, &portio_attr_type); in uio_dev_add_attributes()
/linux-4.1.27/sound/hda/
Dhdac_sysfs.c339 kobject_init(kobj, &widget_ktype); in add_widget_node()
/linux-4.1.27/drivers/base/
Dcore.c657 kobject_init(&dev->kobj, &device_ktype); in device_initialize()
716 kobject_init(&dir->kobj, &class_dir_ktype); in class_dir_create_and_add()
/linux-4.1.27/kernel/
Dpadata.c1074 kobject_init(&pinst->kobj, &padata_attr_type); in padata_alloc()
/linux-4.1.27/drivers/infiniband/core/
Duverbs_main.c906 kobject_init(&uverbs_dev->kobj, &ib_uverbs_dev_ktype); in ib_uverbs_add_one()
Duser_mad.c1293 kobject_init(&umad_dev->kobj, &ib_umad_dev_ktype); in ib_umad_add_one()
/linux-4.1.27/drivers/md/
Dmd.c3128 kobject_init(&rdev->kobj, &rdev_ktype); in md_import_device()
/linux-4.1.27/fs/btrfs/
Dextent-tree.c9267 kobject_init(&rkobj->kobj, &btrfs_raid_ktype); in __link_block_group()