/Linux-v6.6/Documentation/translations/zh_CN/core-api/ |
D | kobject.rst | 109 当然,创建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-v6.6/drivers/md/bcache/ |
D | stats.c | 225 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()
|
D | super.c | 1404 kobject_init(&dc->disk.kobj, &bch_cached_dev_ktype); in cached_dev_init() 1534 kobject_init(&d->kobj, &bch_flash_dev_ktype); in flash_dev_run() 1874 kobject_init(&c->kobj, &bch_cache_set_ktype); in bch_cache_set_alloc() 1875 kobject_init(&c->internal, &bch_cache_set_internal_ktype); in bch_cache_set_alloc() 2235 kobject_init(&ca->kobj, &bch_cache_ktype); in cache_alloc()
|
/Linux-v6.6/block/ |
D | blk-mq-sysfs.c | 189 kobject_init(&hctx->kobj, &blk_mq_hw_ktype); in blk_mq_hctx_kobj_init() 209 kobject_init(q->mq_kobj, &blk_mq_ktype); in blk_mq_sysfs_init() 215 kobject_init(&ctx->kobj, &blk_mq_ctx_ktype); in blk_mq_sysfs_init()
|
D | elevator.c | 142 kobject_init(&eq->kobj, &elv_ktype); in elevator_alloc()
|
D | blk-sysfs.c | 793 kobject_init(&disk->queue_kobj, &blk_queue_ktype); in blk_register_queue()
|
/Linux-v6.6/arch/powerpc/platforms/pseries/ |
D | vas-sysfs.c | 183 kobject_init(¢ry->kobj, &vas_qos_attr_type); in vas_caps_kobj_name() 187 kobject_init(¢ry->kobj, &vas_def_attr_type); in vas_caps_kobj_name()
|
/Linux-v6.6/lib/ |
D | kobject.c | 331 void kobject_init(struct kobject *kobj, const struct kobj_type *ktype) in kobject_init() function 358 EXPORT_SYMBOL(kobject_init); 452 kobject_init(kobj, ktype); in kobject_init_and_add() 768 kobject_init(kobj, &dynamic_kobj_ktype); in kobject_create()
|
/Linux-v6.6/Documentation/core-api/ |
D | kobject.rst | 119 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-v6.6/arch/x86/platform/efi/ |
D | runtime-map.c | 126 kobject_init(&entry->kobj, &map_ktype); in add_sysfs_runtime_map_entry()
|
/Linux-v6.6/include/linux/ |
D | kobject.h | 92 void kobject_init(struct kobject *kobj, const struct kobj_type *ktype);
|
/Linux-v6.6/drivers/gpu/drm/i915/gt/ |
D | sysfs_engines.c | 436 kobject_init(&ke->base, &kobj_engine_type); in kobj_engine() 464 kobject_init(&ke->base, &kobj_engine_type); in add_defaults()
|
/Linux-v6.6/fs/ |
D | char_dev.c | 645 kobject_init(&p->kobj, &ktype_cdev_dynamic); in cdev_alloc() 662 kobject_init(&cdev->kobj, &ktype_cdev_default); in cdev_init()
|
/Linux-v6.6/kernel/livepatch/ |
D | core.c | 906 kobject_init(&func->kobj, &klp_ktype_func); in klp_init_func_early() 914 kobject_init(&obj->kobj, &klp_ktype_object); in klp_init_object_early() 925 kobject_init(&patch->kobj, &klp_ktype_patch); in klp_init_patch_early()
|
/Linux-v6.6/arch/powerpc/kernel/ |
D | secvar-sysfs.c | 170 kobject_init(kobj, &secvar_ktype); in add_var()
|
/Linux-v6.6/drivers/firmware/ |
D | memmap.c | 152 kobject_init(&entry->kobj, &memmap_ktype); in firmware_map_add_entry()
|
D | turris-mox-rwtm.c | 118 kobject_init(rwtm_to_kobj(rwtm), &mox_kobj_ktype); in mox_kobj_create()
|
/Linux-v6.6/arch/powerpc/platforms/powernv/ |
D | opal-elog.c | 199 kobject_init(&elog->kobj, &elog_ktype); in create_elog_obj()
|
D | opal-dump.c | 338 kobject_init(&dump->kobj, &dump_ktype); in create_dump_obj()
|
/Linux-v6.6/arch/arm64/kernel/ |
D | cpuinfo.c | 367 kobject_init(&info->kobj, &cpuregs_kobj_type); in cpuinfo_regs_init()
|
/Linux-v6.6/drivers/uio/ |
D | uio.c | 313 kobject_init(&map->kobj, &map_attr_type); in uio_dev_add_attributes() 342 kobject_init(&portio->kobj, &portio_attr_type); in uio_dev_add_attributes()
|
/Linux-v6.6/sound/hda/ |
D | hdac_sysfs.c | 347 kobject_init(kobj, &widget_ktype); in add_widget_node()
|
/Linux-v6.6/drivers/platform/x86/ |
D | think-lmi.c | 1410 kobject_init(&new_pwd->kobj, &tlmi_pwd_setting_ktype); in tlmi_create_auth() 1515 kobject_init(&setting->kobj, &tlmi_attr_setting_ktype); in tlmi_analyze()
|
/Linux-v6.6/drivers/infiniband/core/ |
D | sysfs.c | 1148 kobject_init(&gid_attr_group->kobj, &gid_attr_type); in setup_gid_attrs() 1214 kobject_init(&p->kobj, &port_type); in setup_port()
|
/Linux-v6.6/kernel/irq/ |
D | irqdesc.c | 437 kobject_init(&desc->kobj, &irq_kobj_type); in alloc_desc()
|