Home
last modified time | relevance | path

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

/linux/Documentation/translations/zh_CN/core-api/
H A Dkobject.rst109 当然,创建kobject的代码必须初始化该对象。一些内部字段是通过(强制)调用kobject_init()
112 void kobject_init(struct kobject *kobj, struct kobj_type *ktype);
115 在调用kobject_init()后,为了向sysfs注册kobject,必须调用函数kobject_add()::
146 参数与上面描述的单个kobject_init()和kobject_add()函数相同。
178 意,kobject_init()将引用计数设置为1,所以设置kobject的代码最终需要kobject_put()
230 放它。唯一安全的方法是使用kobject_put()。在kobject_init()之后总是使用
269 kobject_init()或kobject_init_and_add()时必须指定一个指向该结构的
/linux/drivers/md/bcache/
H A Dstats.c225 kobject_init(&acc->total.kobj, &bch_stats_ktype); in bch_cache_accounting_init()
226 kobject_init(&acc->five_minute.kobj, &bch_stats_ktype); in bch_cache_accounting_init()
227 kobject_init(&acc->hour.kobj, &bch_stats_ktype); in bch_cache_accounting_init()
228 kobject_init(&acc->day.kobj, &bch_stats_ktype); in bch_cache_accounting_init()
H A Dsuper.c1404 kobject_init(&dc->disk.kobj, &bch_cached_dev_ktype); in cached_dev_init()
1530 kobject_init(&d->kobj, &bch_flash_dev_ktype); in flash_dev_run()
1870 kobject_init(&c->kobj, &bch_cache_set_ktype); in bch_cache_set_alloc()
1871 kobject_init(&c->internal, &bch_cache_set_internal_ktype); in bch_cache_set_alloc()
2231 kobject_init(&ca->kobj, &bch_cache_ktype); in cache_alloc()
/linux/arch/powerpc/platforms/pseries/
H A Dvas-sysfs.c183 kobject_init(&centry->kobj, &vas_qos_attr_type); in vas_caps_kobj_name()
187 kobject_init(&centry->kobj, &vas_def_attr_type); in vas_caps_kobj_name()
/linux/drivers/gpu/drm/xe/
H A Dxe_tile_sysfs.c43 kobject_init(&kt->base, &xe_tile_sysfs_kobj_type); in xe_tile_sysfs_init()
H A Dxe_hw_engine_class_sysfs.c513 kobject_init(&keclass->base, &kobj_xe_hw_engine_type); in kobj_xe_hw_engine_class()
546 kobject_init(kobj, &kobj_xe_hw_engine_type); in xe_add_hw_engine_class_defaults()
643 kobject_init(kobj, &xe_hw_engine_sysfs_kobj_type); in xe_hw_engine_class_sysfs_init()
/linux/lib/
H A Dkobject.c322 * kobject_init() - Initialize a kobject structure.
333 void kobject_init(struct kobject *kobj, const struct kobj_type *ktype) in kobject_init() function
360 EXPORT_SYMBOL(kobject_init);
441 * This function combines the call to kobject_init() and kobject_add().
454 kobject_init(kobj, ktype); in kobject_init_and_add()
761 * call to kobject_put() and not kfree(), as kobject_init() has
772 kobject_init(kobj, &dynamic_kobj_ktype); in kobject_create()
/linux/Documentation/core-api/
H A Dkobject.rst119 of the internal fields are setup with a (mandatory) call to kobject_init()::
121 void kobject_init(struct kobject *kobj, const struct kobj_type *ktype);
124 must have an associated kobj_type. After calling kobject_init(), to
162 The arguments are the same as the individual kobject_init() and
201 reference count and, possibly, free the object. Note that kobject_init()
265 is good practice to always use kobject_put() after kobject_init() to avoid
311 call kobject_init() or kobject_init_and_add().
/linux/drivers/gpu/drm/i915/gt/
H A Dsysfs_engines.c436 kobject_init(&ke->base, &kobj_engine_type); in kobj_engine()
464 kobject_init(&ke->base, &kobj_engine_type); in add_defaults()
/linux/arch/x86/platform/efi/
H A Druntime-map.c126 kobject_init(&entry->kobj, &map_ktype); in add_sysfs_runtime_map_entry()
/linux/include/linux/
H A Dkobject.h92 void kobject_init(struct kobject *kobj, const struct kobj_type *ktype);
/linux/kernel/livepatch/
H A Dcore.c941 kobject_init(&func->kobj, &klp_ktype_func); in klp_init_patch_early()
949 kobject_init(&obj->kobj, &klp_ktype_object); in klp_init_patch_early()
960 kobject_init(&patch->kobj, &klp_ktype_patch); in klp_init_patch()
/linux/fs/bcachefs/
H A Dsuper.c765 kobject_init(&c->kobj, &bch2_fs_ktype); in bch2_fs_alloc()
766 kobject_init(&c->internal, &bch2_fs_internal_ktype); in bch2_fs_alloc()
767 kobject_init(&c->opts_dir, &bch2_fs_opts_dir_ktype); in bch2_fs_alloc()
768 kobject_init(&c->time_stats, &bch2_fs_time_stats_ktype); in bch2_fs_alloc()
769 kobject_init(&c->counters_kobj, &bch2_fs_counters_ktype); in bch2_fs_alloc()
1314 kobject_init(&ca->kobj, &bch2_dev_ktype); in __bch2_dev_alloc()
/linux/arch/powerpc/kernel/
H A Dsecvar-sysfs.c170 kobject_init(kobj, &secvar_ktype); in add_var()
/linux/arch/powerpc/platforms/powernv/
H A Dopal-elog.c199 kobject_init(&elog->kobj, &elog_ktype); in create_elog_obj()
H A Dopal-dump.c338 kobject_init(&dump->kobj, &dump_ktype); in create_dump_obj()
/linux/drivers/uio/
H A Duio.c314 kobject_init(&map->kobj, &map_attr_type); in uio_dev_add_attributes()
343 kobject_init(&portio->kobj, &portio_attr_type); in uio_dev_add_attributes()
/linux/sound/hda/
H A Dhdac_sysfs.c347 kobject_init(kobj, &widget_ktype); in add_widget_node()
/linux/drivers/infiniband/core/
H A Dsysfs.c1152 kobject_init(&gid_attr_group->kobj, &gid_attr_type); in setup_gid_attrs()
1218 kobject_init(&p->kobj, &port_type); in setup_port()
/linux/block/
H A Dblk-sysfs.c765 kobject_init(&disk->queue_kobj, &blk_queue_ktype); in blk_register_queue()
/linux/drivers/base/
H A Dcore.c3136 kobject_init(&dev->kobj, &device_ktype); in device_initialize()
3205 kobject_init(&dir->kobj, &class_dir_ktype); in class_dir_create_and_add()
/linux/fs/btrfs/
H A Dsysfs.c1874 kobject_init(&rkobj->kobj, &btrfs_raid_ktype); in btrfs_sysfs_add_block_group_type()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_discovery.c1102 kobject_init(&ip_hw_instance->kobj, &ip_hw_instance_ktype); in amdgpu_discovery_sysfs_ips()