/linux/fs/orangefs/ |
A D | orangefs-sysfs.c | 1123 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 D | sysfs.c | 48 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 D | kobject.rst | 141 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 D | rnbd-srv-sysfs.c | 48 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 D | ttm_memory.c | 323 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 D | sysfs.c | 54 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 D | blk-ia-ranges.c | 143 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 D | xfs_sysfs.h | 39 return kobject_init_and_add(&kobj->kobject, ktype, parent, "%s", name); in xfs_sysfs_init()
|
/linux/drivers/infiniband/ulp/rtrs/ |
A D | rtrs-srv-sysfs.c | 235 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 D | rtrs-clt-sysfs.c | 437 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 D | edac_device_sysfs.c | 258 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 D | edac_pci_sysfs.c | 174 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 D | cma_sysfs.c | 94 err = kobject_init_and_add(&cma_kobj->kobj, &cma_ktype, in cma_sysfs_init()
|
/linux/arch/ia64/kernel/ |
A D | topology.c | 362 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 D | sysfs.c | 487 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 D | sysfs.c | 79 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 D | dma-buf-sysfs-stats.c | 194 ret = kobject_init_and_add(&sysfs_entry->kobj, &dma_buf_ktype, NULL, in dma_buf_stats_setup()
|
/linux/drivers/md/ |
A D | dm-sysfs.c | 133 return kobject_init_and_add(dm_kobject(md), &dm_ktype, in dm_sysfs_init()
|
/linux/drivers/dma/ioat/ |
A D | sysfs.c | 85 err = kobject_init_and_add(&ioat_chan->kobj, type, in ioat_kobject_add()
|
/linux/include/linux/ |
A D | kobject.h | 98 int kobject_init_and_add(struct kobject *kobj,
|
/linux/drivers/platform/x86/ |
A D | uv_sysfs.c | 262 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 D | kfd_topology.c | 641 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 D | kfd_process.c | 359 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 D | kset-example.c | 221 retval = kobject_init_and_add(&foo->kobj, &foo_ktype, NULL, "%s", name); in create_foo_obj()
|
/linux/drivers/firmware/ |
A D | dmi-sysfs.c | 456 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()
|