Home
last modified time | relevance | path

Searched refs:kobject_init_and_add (Results 1 – 25 of 82) sorted by relevance

1234

/linux/fs/orangefs/
A Dorangefs-sysfs.c1123 rc = kobject_init_and_add(orangefs_obj, in orangefs_sysfs_init()
1140 rc = kobject_init_and_add(acache_orangefs_obj, in orangefs_sysfs_init()
1158 rc = kobject_init_and_add(capcache_orangefs_obj, in orangefs_sysfs_init()
1175 rc = kobject_init_and_add(ccache_orangefs_obj, in orangefs_sysfs_init()
1191 rc = kobject_init_and_add(ncache_orangefs_obj, in orangefs_sysfs_init()
1208 rc = kobject_init_and_add(pc_orangefs_obj, in orangefs_sysfs_init()
1225 rc = kobject_init_and_add(stats_orangefs_obj, in orangefs_sysfs_init()
/linux/fs/nfs/
A Dsysfs.c48 if (kobject_init_and_add(kobj, &nfs_netns_object_type, in nfs_netns_object_alloc()
162 if (kobject_init_and_add(&p->kobject, &nfs_netns_client_type, in nfs_netns_client_alloc()
/linux/Documentation/translations/zh_CN/core-api/
A Dkobject.rst141 kobject_init_and_add()::
143 int kobject_init_and_add(struct kobject *kobj, struct kobj_type *ktype,
270 kobject_init()或kobject_init_and_add()时必须指定一个指向该结构的
/linux/drivers/block/rnbd/
A Drnbd-srv-sysfs.c48 ret = kobject_init_and_add(&dev->dev_kobj, &dev_ktype, in rnbd_srv_create_dev_sysfs()
198 ret = kobject_init_and_add(&sess_dev->kobj, &rnbd_srv_sess_dev_ktype, in rnbd_srv_create_dev_session_sysfs()
/linux/drivers/gpu/drm/vmwgfx/
A Dttm_memory.c323 ret = kobject_init_and_add( in ttm_mem_init_kernel_zone()
359 ret = kobject_init_and_add( in ttm_mem_init_highmem_zone()
407 ret = kobject_init_and_add( in ttm_mem_init_dma32_zone()
429 ret = kobject_init_and_add(&glob->kobj, &ttm_mem_glob_kobj_type, in ttm_mem_global_init()
/linux/net/sunrpc/
A Dsysfs.c54 if (kobject_init_and_add(kobj, &rpc_sysfs_object_type, in rpc_sysfs_object_alloc()
471 if (kobject_init_and_add(&p->kobject, &rpc_sysfs_client_type, in rpc_sysfs_client_alloc()
491 if (kobject_init_and_add(&p->kobject, in rpc_sysfs_xprt_switch_alloc()
511 if (kobject_init_and_add(&p->kobject, &rpc_sysfs_xprt_type, in rpc_sysfs_xprt_alloc()
/linux/block/
A Dblk-ia-ranges.c143 ret = kobject_init_and_add(&iars->kobj, &blk_ia_ranges_ktype, in disk_register_independent_access_ranges()
153 ret = kobject_init_and_add(&iars->ia_range[i].kobj, in disk_register_independent_access_ranges()
/linux/fs/xfs/
A Dxfs_sysfs.h39 return kobject_init_and_add(&kobj->kobject, ktype, parent, "%s", name); in xfs_sysfs_init()
/linux/drivers/infiniband/ulp/rtrs/
A Drtrs-srv-sysfs.c235 err = kobject_init_and_add(&sess->stats->kobj_stats, &ktype_stats, in rtrs_srv_create_stats_files()
274 err = kobject_init_and_add(&sess->kobj, &ktype, srv->kobj_paths, in rtrs_srv_create_sess_files()
A Drtrs-clt-sysfs.c437 err = kobject_init_and_add(&sess->kobj, &ktype_sess, clt->kobj_paths, in rtrs_clt_create_sess_files()
449 err = kobject_init_and_add(&sess->stats->kobj_stats, &ktype_stats, in rtrs_clt_create_sess_files()
/linux/drivers/edac/
A Dedac_device_sysfs.c258 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()
A Dedac_pci_sysfs.c174 err = kobject_init_and_add(&pci->kobj, &ktype_pci_instance, in edac_pci_create_instance_kobj()
370 err = kobject_init_and_add(edac_pci_top_main_kobj, in edac_pci_main_kobj_setup()
/linux/mm/
A Dcma_sysfs.c94 err = kobject_init_and_add(&cma_kobj->kobj, &cma_ktype, in cma_sysfs_init()
/linux/arch/ia64/kernel/
A Dtopology.c362 retval = kobject_init_and_add(&all_cpu_cache_info[cpu].kobj, in cache_add_dev()
372 retval = kobject_init_and_add(&(this_object->kobj), in cache_add_dev()
/linux/drivers/cpuidle/
A Dsysfs.c487 ret = kobject_init_and_add(&kobj->kobj, &ktype_state_cpuidle, in cpuidle_add_state_sysfs()
619 ret = kobject_init_and_add(&kdrv->kobj, &ktype_driver_cpuidle, in cpuidle_add_driver_sysfs()
713 error = kobject_init_and_add(&kdev->kobj, &ktype_cpuidle, &cpu_dev->kobj, in cpuidle_add_sysfs()
/linux/fs/nilfs2/
A Dsysfs.c79 err = kobject_init_and_add(kobj, &nilfs_##name##_ktype, parent, \
186 err = kobject_init_and_add(&root->snapshot_kobj, in nilfs_sysfs_create_snapshot_group()
191 err = kobject_init_and_add(&root->snapshot_kobj, in nilfs_sysfs_create_snapshot_group()
984 err = kobject_init_and_add(&nilfs->ns_dev_kobj, &nilfs_dev_ktype, NULL, in nilfs_sysfs_create_device_group()
/linux/drivers/dma-buf/
A Ddma-buf-sysfs-stats.c194 ret = kobject_init_and_add(&sysfs_entry->kobj, &dma_buf_ktype, NULL, in dma_buf_stats_setup()
/linux/drivers/md/
A Ddm-sysfs.c133 return kobject_init_and_add(dm_kobject(md), &dm_ktype, in dm_sysfs_init()
/linux/drivers/dma/ioat/
A Dsysfs.c85 err = kobject_init_and_add(&ioat_chan->kobj, type, in ioat_kobject_add()
/linux/include/linux/
A Dkobject.h98 int kobject_init_and_add(struct kobject *kobj,
/linux/drivers/platform/x86/
A Duv_sysfs.c262 ret = kobject_init_and_add(&uv_hubs[i]->kobj, &hub_attr_type, in uv_hubs_init()
405 ret = kobject_init_and_add(&uv_hubs[j]->ports[k]->kobj, &uv_port_attr_type, in uv_ports_init()
609 ret = kobject_init_and_add(&top_obj->kobj, &uv_pci_top_attr_type, NULL, "%s", line); in init_pci_top_obj()
/linux/drivers/gpu/drm/amd/amdkfd/
A Dkfd_topology.c641 ret = kobject_init_and_add(dev->kobj_node, &node_type, in kfd_build_sysfs_node_entry()
691 ret = kobject_init_and_add(mem->kobj, &mem_type, in kfd_build_sysfs_node_entry()
712 ret = kobject_init_and_add(cache->kobj, &cache_type, in kfd_build_sysfs_node_entry()
733 ret = kobject_init_and_add(iolink->kobj, &iolink_type, in kfd_build_sysfs_node_entry()
814 ret = kobject_init_and_add(sys_props.kobj_topology, in kfd_topology_update_sysfs()
A Dkfd_process.c359 ret = kobject_init_and_add(procfs.kobj, &procfs_type, in kfd_procfs_init()
505 ret = kobject_init_and_add(&q->kobj, &procfs_queue_type, in kfd_procfs_add_queue()
558 ret = kobject_init_and_add(pdd->kobj_stats, in kfd_procfs_add_sysfs_stats()
607 ret = kobject_init_and_add(kobj_counters, &sysfs_counters_type, in kfd_procfs_add_sysfs_counters()
839 ret = kobject_init_and_add(process->kobj, &procfs_type, in kfd_create_process()
/linux/samples/kobject/
A Dkset-example.c221 retval = kobject_init_and_add(&foo->kobj, &foo_ktype, NULL, "%s", name); in create_foo_obj()
/linux/drivers/firmware/
A Ddmi-sysfs.c456 ret = kobject_init_and_add(entry->child, in dmi_system_event_log()
602 *ret = kobject_init_and_add(&entry->kobj, &dmi_sysfs_entry_ktype, NULL, in dmi_sysfs_register_handle()

Completed in 45 milliseconds

1234