/linux-6.1.9/mm/damon/ |
D | sysfs.c | 527 err = kobject_init_and_add(&weights->kobj, &damon_sysfs_weights_ktype, in damon_sysfs_quotas_add_dirs() 665 err = kobject_init_and_add(&range->kobj, &damon_sysfs_ul_range_ktype, in damon_sysfs_access_pattern_add_range_dir() 778 err = kobject_init_and_add(&access_pattern->kobj, in damon_sysfs_scheme_set_access_pattern() 801 err = kobject_init_and_add("as->kobj, &damon_sysfs_quotas_ktype, in damon_sysfs_scheme_set_quotas() 824 err = kobject_init_and_add(&watermarks->kobj, in damon_sysfs_scheme_set_watermarks() 841 err = kobject_init_and_add(&stats->kobj, &damon_sysfs_stats_ktype, in damon_sysfs_scheme_set_stats() 988 err = kobject_init_and_add(&scheme->kobj, in damon_sysfs_schemes_add_dirs() 1196 err = kobject_init_and_add(®ion->kobj, in damon_sysfs_regions_add_dirs() 1286 err = kobject_init_and_add(®ions->kobj, &damon_sysfs_regions_ktype, in damon_sysfs_target_add_dirs() 1394 err = kobject_init_and_add(&target->kobj, in damon_sysfs_targets_add_dirs() [all …]
|
/linux-6.1.9/fs/nfs/ |
D | sysfs.c | 48 if (kobject_init_and_add(kobj, &nfs_netns_object_type, in nfs_netns_object_alloc() 163 if (kobject_init_and_add(&p->kobject, &nfs_netns_client_type, in nfs_netns_client_alloc()
|
/linux-6.1.9/Documentation/translations/zh_CN/core-api/ |
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-6.1.9/fs/orangefs/ |
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-6.1.9/drivers/block/rnbd/ |
D | rnbd-srv-sysfs.c | 46 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-6.1.9/fs/xfs/ |
D | xfs_sysfs.h | 40 err = kobject_init_and_add(&kobj->kobject, ktype, parent, "%s", name); in xfs_sysfs_init()
|
/linux-6.1.9/block/ |
D | blk-ia-ranges.c | 125 ret = kobject_init_and_add(&iars->kobj, &blk_ia_ranges_ktype, in disk_register_independent_access_ranges() 134 ret = kobject_init_and_add(&iars->ia_range[i].kobj, in disk_register_independent_access_ranges()
|
D | blk-crypto-sysfs.c | 142 err = kobject_init_and_add(&obj->kobj, &blk_crypto_ktype, &q->kobj, in blk_crypto_sysfs_register()
|
/linux-6.1.9/fs/erofs/ |
D | sysfs.c | 227 err = kobject_init_and_add(&sbi->s_kobj, &erofs_sb_ktype, NULL, "%s", name); in erofs_register_sysfs() 260 ret = kobject_init_and_add(&erofs_feat, &erofs_feat_ktype, in erofs_init_sysfs()
|
/linux-6.1.9/net/sunrpc/ |
D | sysfs.c | 54 if (kobject_init_and_add(kobj, &rpc_sysfs_object_type, in rpc_sysfs_object_alloc() 467 if (kobject_init_and_add(&p->kobject, &rpc_sysfs_client_type, in rpc_sysfs_client_alloc() 487 if (kobject_init_and_add(&p->kobject, in rpc_sysfs_xprt_switch_alloc() 507 if (kobject_init_and_add(&p->kobject, &rpc_sysfs_xprt_type, in rpc_sysfs_xprt_alloc()
|
/linux-6.1.9/drivers/gpu/drm/i915/gt/ |
D | intel_gt_sysfs.c | 94 if (kobject_init_and_add(>->sysfs_gt, &kobj_gt_type, in intel_gt_sysfs_register()
|
/linux-6.1.9/drivers/infiniband/ulp/rtrs/ |
D | rtrs-srv-sysfs.c | 238 err = kobject_init_and_add(&srv_path->stats->kobj_stats, &ktype_stats, in rtrs_srv_create_stats_files() 277 err = kobject_init_and_add(&srv_path->kobj, &ktype, srv->kobj_paths, in rtrs_srv_create_path_files()
|
/linux-6.1.9/mm/ |
D | cma_sysfs.c | 94 err = kobject_init_and_add(&cma_kobj->kobj, &cma_ktype, in cma_sysfs_init()
|
/linux-6.1.9/drivers/edac/ |
D | edac_device_sysfs.c | 256 err = kobject_init_and_add(&edac_dev->kobj, &ktype_device_ctrl, in edac_device_register_sysfs_main_kobj() 535 err = kobject_init_and_add(&block->kobj, &ktype_block_ctrl, in edac_device_create_block() 634 err = kobject_init_and_add(&instance->kobj, &ktype_instance_ctrl, in edac_device_create_instance()
|
D | edac_pci_sysfs.c | 175 err = kobject_init_and_add(&pci->kobj, &ktype_pci_instance, in edac_pci_create_instance_kobj() 372 err = kobject_init_and_add(edac_pci_top_main_kobj, in edac_pci_main_kobj_setup()
|
/linux-6.1.9/fs/zonefs/ |
D | sysfs.c | 96 ret = kobject_init_and_add(&sbi->s_kobj, &zonefs_sb_ktype, in zonefs_sysfs_register()
|
/linux-6.1.9/arch/ia64/kernel/ |
D | topology.c | 353 retval = kobject_init_and_add(&all_cpu_cache_info[cpu].kobj, in cache_add_dev() 363 retval = kobject_init_and_add(&(this_object->kobj), in cache_add_dev()
|
/linux-6.1.9/drivers/dma-buf/ |
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-6.1.9/drivers/cpuidle/ |
D | sysfs.c | 488 ret = kobject_init_and_add(&kobj->kobj, &ktype_state_cpuidle, in cpuidle_add_state_sysfs() 621 ret = kobject_init_and_add(&kdrv->kobj, &ktype_driver_cpuidle, in cpuidle_add_driver_sysfs() 715 error = kobject_init_and_add(&kdev->kobj, &ktype_cpuidle, &cpu_dev->kobj, in cpuidle_add_sysfs()
|
/linux-6.1.9/drivers/md/ |
D | dm-sysfs.c | 134 return kobject_init_and_add(dm_kobject(md), &dm_ktype, in dm_sysfs_init()
|
/linux-6.1.9/fs/ubifs/ |
D | sysfs.c | 113 ret = kobject_init_and_add(&c->kobj, &ubifs_sb_ktype, NULL, in ubifs_sysfs_register()
|
/linux-6.1.9/fs/nilfs2/ |
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() 991 err = kobject_init_and_add(&nilfs->ns_dev_kobj, &nilfs_dev_ktype, NULL, in nilfs_sysfs_create_device_group()
|
/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_topology.c | 678 ret = kobject_init_and_add(dev->kobj_node, &node_type, in kfd_build_sysfs_node_entry() 732 ret = kobject_init_and_add(mem->kobj, &mem_type, in kfd_build_sysfs_node_entry() 753 ret = kobject_init_and_add(cache->kobj, &cache_type, in kfd_build_sysfs_node_entry() 774 ret = kobject_init_and_add(iolink->kobj, &iolink_type, in kfd_build_sysfs_node_entry() 795 ret = kobject_init_and_add(p2plink->kobj, &iolink_type, in kfd_build_sysfs_node_entry() 876 ret = kobject_init_and_add(sys_props.kobj_topology, in kfd_topology_update_sysfs() 1376 ret = kobject_init_and_add(p2plink->kobj, &iolink_type, in kfd_build_p2p_node_entry()
|
/linux-6.1.9/include/linux/ |
D | kobject.h | 98 int kobject_init_and_add(struct kobject *kobj,
|
/linux-6.1.9/drivers/dma/ioat/ |
D | sysfs.c | 85 err = kobject_init_and_add(&ioat_chan->kobj, type, in ioat_kobject_add()
|