/linux/mm/damon/ |
H A D | sysfs.c | 140 err = kobject_init_and_add(®ion->kobj, in damon_sysfs_regions_add_dirs() 230 err = kobject_init_and_add(®ions->kobj, &damon_sysfs_regions_ktype, in damon_sysfs_target_add_dirs() 338 err = kobject_init_and_add(&target->kobj, in damon_sysfs_targets_add_dirs() 569 err = kobject_init_and_add(&intervals->kobj, in damon_sysfs_attrs_add_dirs() 582 err = kobject_init_and_add(&nr_regions_range->kobj, in damon_sysfs_attrs_add_dirs() 660 err = kobject_init_and_add(&attrs->kobj, &damon_sysfs_attrs_ktype, in damon_sysfs_context_set_attrs() 682 err = kobject_init_and_add(&targets->kobj, &damon_sysfs_targets_ktype, in damon_sysfs_context_set_targets() 699 err = kobject_init_and_add(&schemes->kobj, &damon_sysfs_schemes_ktype, in damon_sysfs_context_set_schemes() 861 err = kobject_init_and_add(&context->kobj, in damon_sysfs_contexts_add_dirs() 959 err = kobject_init_and_add(&contexts->kobj, in damon_sysfs_kdamond_add_dirs() [all …]
|
H A D | sysfs-schemes.c | 583 err = kobject_init_and_add(&filter->kobj, in damon_sysfs_scheme_filters_add_dirs() 992 err = kobject_init_and_add(&goal->kobj, in damos_sysfs_quota_goals_add_dirs() 1199 err = kobject_init_and_add(&weights->kobj, &damon_sysfs_weights_ktype, in damon_sysfs_quotas_add_dirs() 1212 err = kobject_init_and_add(&goals->kobj, in damon_sysfs_quotas_add_dirs() 1369 err = kobject_init_and_add(&range->kobj, &damon_sysfs_ul_range_ktype, in damon_sysfs_access_pattern_add_range_dir() 1490 err = kobject_init_and_add(&access_pattern->kobj, in damon_sysfs_scheme_set_access_pattern() 1513 err = kobject_init_and_add("as->kobj, &damon_sysfs_quotas_ktype, in damon_sysfs_scheme_set_quotas() 1536 err = kobject_init_and_add(&watermarks->kobj, in damon_sysfs_scheme_set_watermarks() 1554 err = kobject_init_and_add(&filters->kobj, in damon_sysfs_scheme_set_filters() 1571 err = kobject_init_and_add(&stats->kobj, &damon_sysfs_stats_ktype, in damon_sysfs_scheme_set_stats() [all …]
|
/linux/Documentation/translations/zh_CN/core-api/ |
H A D | kobject.rst | 141 kobject_init_and_add():: 143 int kobject_init_and_add(struct kobject *kobj, struct kobj_type *ktype, 269 kobject_init()或kobject_init_and_add()时必须指定一个指向该结构的
|
/linux/fs/nfs/ |
H A D | sysfs.c | 180 if (kobject_init_and_add(&p->nfs_net_kobj, &nfs_netns_object_type, in nfs_netns_client_alloc() 186 if (kobject_init_and_add(&p->kobject, &nfs_netns_client_type, in nfs_netns_client_alloc() 316 ret = kobject_init_and_add(&server->kobj, &nfs_sb_ktype, in nfs_sysfs_add_server()
|
/linux/fs/orangefs/ |
H A D | orangefs-sysfs.c | 1185 rc = kobject_init_and_add(orangefs_obj, in orangefs_sysfs_init() 1202 rc = kobject_init_and_add(acache_orangefs_obj, in orangefs_sysfs_init() 1220 rc = kobject_init_and_add(capcache_orangefs_obj, in orangefs_sysfs_init() 1237 rc = kobject_init_and_add(ccache_orangefs_obj, in orangefs_sysfs_init() 1253 rc = kobject_init_and_add(ncache_orangefs_obj, in orangefs_sysfs_init() 1270 rc = kobject_init_and_add(pc_orangefs_obj, in orangefs_sysfs_init() 1287 rc = kobject_init_and_add(stats_orangefs_obj, in orangefs_sysfs_init()
|
/linux/drivers/block/rnbd/ |
H A D | rnbd-srv-sysfs.c | 47 ret = kobject_init_and_add(&dev->dev_kobj, &dev_ktype, in rnbd_srv_create_dev_sysfs() 196 ret = kobject_init_and_add(&sess_dev->kobj, &rnbd_srv_sess_dev_ktype, in rnbd_srv_create_dev_session_sysfs()
|
/linux/block/ |
H A D | blk-ia-ranges.c | 125 ret = kobject_init_and_add(&iars->kobj, &blk_ia_ranges_ktype, in disk_register_independent_access_ranges() 135 ret = kobject_init_and_add(&iars->ia_range[i].kobj, in disk_register_independent_access_ranges()
|
H A D | blk-crypto-sysfs.c | 143 err = kobject_init_and_add(&obj->kobj, &blk_crypto_ktype, in blk_crypto_sysfs_register()
|
/linux/fs/xfs/ |
H A D | xfs_sysfs.h | 40 err = kobject_init_and_add(&kobj->kobject, ktype, parent, "%s", name); in xfs_sysfs_init()
|
/linux/net/sunrpc/ |
H A D | sysfs.c | 54 if (kobject_init_and_add(kobj, &rpc_sysfs_object_type, in rpc_sysfs_object_alloc() 468 if (kobject_init_and_add(&p->kobject, &rpc_sysfs_client_type, in rpc_sysfs_client_alloc() 488 if (kobject_init_and_add(&p->kobject, in rpc_sysfs_xprt_switch_alloc() 508 if (kobject_init_and_add(&p->kobject, &rpc_sysfs_xprt_type, in rpc_sysfs_xprt_alloc()
|
/linux/fs/erofs/ |
H A D | sysfs.c | 212 err = kobject_init_and_add(&sbi->s_kobj, &erofs_sb_ktype, NULL, "%s", in erofs_register_sysfs() 242 ret = kobject_init_and_add(&erofs_feat, &erofs_feat_ktype, in erofs_init_sysfs()
|
/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_gt_sysfs.c | 95 if (kobject_init_and_add(>->sysfs_gt, &kobj_gt_type, in intel_gt_sysfs_register()
|
/linux/drivers/infiniband/ulp/rtrs/ |
H A D | rtrs-srv-sysfs.c | 237 err = kobject_init_and_add(&srv_path->stats->kobj_stats, &ktype_stats, in rtrs_srv_create_stats_files() 276 err = kobject_init_and_add(&srv_path->kobj, &ktype, srv->kobj_paths, in rtrs_srv_create_path_files()
|
H A D | rtrs-clt-sysfs.c | 438 err = kobject_init_and_add(&clt_path->kobj, &ktype_sess, in rtrs_clt_create_path_files() 451 err = kobject_init_and_add(&clt_path->stats->kobj_stats, &ktype_stats, in rtrs_clt_create_path_files()
|
/linux/drivers/edac/ |
H A D | edac_device_sysfs.c | 257 err = kobject_init_and_add(&edac_dev->kobj, &ktype_device_ctrl, in edac_device_register_sysfs_main_kobj() 521 err = kobject_init_and_add(&block->kobj, &ktype_block_ctrl, in edac_device_create_block() 620 err = kobject_init_and_add(&instance->kobj, &ktype_instance_ctrl, in edac_device_create_instance()
|
H A D | edac_pci_sysfs.c | 175 err = kobject_init_and_add(&pci->kobj, &ktype_pci_instance, in edac_pci_create_instance_kobj() 374 err = kobject_init_and_add(edac_pci_top_main_kobj, in edac_pci_main_kobj_setup()
|
/linux/mm/ |
H A D | cma_sysfs.c | 109 err = kobject_init_and_add(&cma_kobj->kobj, &cma_ktype, in cma_sysfs_init()
|
/linux/fs/zonefs/ |
H A D | sysfs.c | 97 ret = kobject_init_and_add(&sbi->s_kobj, &zonefs_sb_ktype, in zonefs_sysfs_register()
|
/linux/drivers/dma-buf/ |
H A D | dma-buf-sysfs-stats.c | 191 ret = kobject_init_and_add(&sysfs_entry->kobj, &dma_buf_ktype, NULL, in dma_buf_stats_setup()
|
/linux/fs/nilfs2/ |
H A D | sysfs.c | 79 err = kobject_init_and_add(kobj, &nilfs_##name##_ktype, parent, \ 187 err = kobject_init_and_add(&root->snapshot_kobj, in nilfs_sysfs_create_snapshot_group() 192 err = kobject_init_and_add(&root->snapshot_kobj, in nilfs_sysfs_create_snapshot_group() 1014 err = kobject_init_and_add(&nilfs->ns_dev_kobj, &nilfs_dev_ktype, NULL, in nilfs_sysfs_create_device_group()
|
/linux/drivers/md/ |
H A D | dm-sysfs.c | 135 return kobject_init_and_add(dm_kobject(md), &dm_ktype, in dm_sysfs_init()
|
/linux/fs/ubifs/ |
H A D | sysfs.c | 113 ret = kobject_init_and_add(&c->kobj, &ubifs_sb_ktype, NULL, in ubifs_sysfs_register()
|
/linux/drivers/cpuidle/ |
H A D | sysfs.c | 495 ret = kobject_init_and_add(&kobj->kobj, &ktype_state_cpuidle, in cpuidle_add_state_sysfs() 628 ret = kobject_init_and_add(&kdrv->kobj, &ktype_driver_cpuidle, in cpuidle_add_driver_sysfs() 722 error = kobject_init_and_add(&kdev->kobj, &ktype_cpuidle, &cpu_dev->kobj, in cpuidle_add_sysfs()
|
/linux/drivers/platform/x86/hp/hp-bioscfg/ |
H A D | bioscfg.c | 619 ret = kobject_init_and_add(attr_name_kobj, &attr_name_ktype, in hp_add_other_attributes() 720 ret = kobject_init_and_add(attr_name_kobj, &attr_name_ktype, in hp_init_bios_package_attribute() 817 ret = kobject_init_and_add(attr_name_kobj, in hp_init_bios_buffer_attribute()
|
/linux/drivers/dma/ioat/ |
H A D | sysfs.c | 85 err = kobject_init_and_add(&ioat_chan->kobj, type, in ioat_kobject_add()
|