/linux/drivers/infiniband/hw/mlx4/ |
A D | sysfs.c | 325 kobject_put(port->cur_port); in add_port_entries() 331 kobject_put(port->cur_port); in add_port_entries() 337 kobject_put(port->cur_port); in add_port_entries() 343 kobject_put(port->cur_port); in add_port_entries() 744 kobject_put(p); in register_one_pkey_tree() 789 kobject_put(p); in unregister_pkey_tree() 855 kobject_put(p->cur_port); in unregister_alias_guid_tree() 856 kobject_put(p->cur_port); in unregister_alias_guid_tree() 857 kobject_put(p->cur_port); in unregister_alias_guid_tree() 858 kobject_put(p->cur_port); in unregister_alias_guid_tree() [all …]
|
/linux/drivers/block/rnbd/ |
A D | rnbd-srv-sysfs.c | 51 kobject_put(&dev->dev_kobj); in rnbd_srv_create_dev_sysfs() 70 kobject_put(dev->dev_sessions_kobj); in rnbd_srv_create_dev_sysfs() 73 kobject_put(&dev->dev_kobj); in rnbd_srv_create_dev_sysfs() 81 kobject_put(dev->dev_sessions_kobj); in rnbd_srv_destroy_dev_sysfs() 83 kobject_put(&dev->dev_kobj); in rnbd_srv_destroy_dev_sysfs() 178 kobject_put(&sess_dev->kobj); in rnbd_srv_destroy_dev_session_sysfs() 202 kobject_put(&sess_dev->kobj); in rnbd_srv_create_dev_session_sysfs() 210 kobject_put(&sess_dev->kobj); in rnbd_srv_create_dev_session_sysfs() 249 kobject_put(rnbd_devs_kobj); in rnbd_srv_destroy_sysfs_files()
|
/linux/Documentation/translations/zh_CN/core-api/ |
A D | kobject.rst | 173 void kobject_put(struct kobject *kobj); 177 当引用被释放时,对kobject_put()的调用将递减引用计数值,并可能释放该对象。请注 178 意,kobject_init()将引用计数设置为1,所以设置kobject的代码最终需要kobject_put() 230 放它。唯一安全的方法是使用kobject_put()。在kobject_init()之后总是使用 231 kobject_put()以避免错误的发生是一个很好的做法。 360 清理掉。要做到这一点,请调用kobject_put()。通过这样做,kobject核 368 后的时间调用kobject_put()来完成与该kobject相关的内存的清理。
|
/linux/drivers/edac/ |
A D | edac_device_sysfs.c | 278 kobject_put(&edac_dev->kobj); in edac_device_register_sysfs_main_kobj() 301 kobject_put(&dev->kobj); in edac_device_unregister_sysfs_main_kobj() 335 kobject_put(&instance->ctl->kobj); in edac_device_ctrl_instance_release() 443 kobject_put(&block->instance->ctl->kobj); in edac_device_ctrl_block_release() 540 kobject_put(main_kobj); in edac_device_create_block() 569 kobject_put(&block->kobj); in edac_device_create_block() 600 kobject_put(&block->kobj); in edac_device_delete_block() 639 kobject_put(main_kobj); in edac_device_create_instance() 667 kobject_put(&instance->kobj); in edac_device_create_instance() 692 kobject_put(&instance->kobj); in edac_device_delete_instance()
|
A D | edac_pci_sysfs.c | 84 kobject_put(edac_pci_top_main_kobj); in edac_pci_instance_release() 178 kobject_put(edac_pci_top_main_kobj); in edac_pci_create_instance_kobj() 206 kobject_put(&pci->kobj); in edac_pci_unregister_sysfs_instance_kobj() 389 kobject_put(edac_pci_top_main_kobj); in edac_pci_main_kobj_setup() 417 kobject_put(edac_pci_top_main_kobj); in edac_pci_main_kobj_teardown()
|
/linux/fs/orangefs/ |
A D | orangefs-sysfs.c | 1237 kobject_put(stats_orangefs_obj); in orangefs_sysfs_init() 1239 kobject_put(pc_orangefs_obj); in orangefs_sysfs_init() 1241 kobject_put(ncache_orangefs_obj); in orangefs_sysfs_init() 1243 kobject_put(ccache_orangefs_obj); in orangefs_sysfs_init() 1249 kobject_put(orangefs_obj); in orangefs_sysfs_init() 1257 kobject_put(acache_orangefs_obj); in orangefs_sysfs_exit() 1259 kobject_put(ccache_orangefs_obj); in orangefs_sysfs_exit() 1260 kobject_put(ncache_orangefs_obj); in orangefs_sysfs_exit() 1261 kobject_put(pc_orangefs_obj); in orangefs_sysfs_exit() 1262 kobject_put(stats_orangefs_obj); in orangefs_sysfs_exit() [all …]
|
/linux/drivers/infiniband/ulp/rtrs/ |
A D | rtrs-srv-sysfs.c | 206 kobject_put(srv->kobj_paths); in rtrs_srv_destroy_once_sysfs_root_folders() 239 kobject_put(&sess->stats->kobj_stats); in rtrs_srv_create_stats_files() 253 kobject_put(&sess->stats->kobj_stats); in rtrs_srv_create_stats_files() 296 kobject_put(&sess->kobj); in rtrs_srv_create_sess_files() 306 kobject_put(&sess->stats->kobj_stats); in rtrs_srv_destroy_sess_files() 308 kobject_put(&sess->kobj); in rtrs_srv_destroy_sess_files()
|
A D | rtrs-clt-sysfs.c | 441 kobject_put(&sess->kobj); in rtrs_clt_create_sess_files() 453 kobject_put(&sess->stats->kobj_stats); in rtrs_clt_create_sess_files() 468 kobject_put(&sess->stats->kobj_stats); in rtrs_clt_create_sess_files() 473 kobject_put(&sess->kobj); in rtrs_clt_create_sess_files() 482 kobject_put(&sess->stats->kobj_stats); in rtrs_clt_destroy_sess_files() 510 kobject_put(clt->kobj_paths); in rtrs_clt_destroy_sysfs_root()
|
/linux/lib/ |
A D | kobject.c | 258 kobject_put(parent); in kobject_add_internal() 502 kobject_put(kobj); in kobject_rename() 543 kobject_put(kobj); in kobject_rename() 591 kobject_put(old_parent); in kobject_move() 594 kobject_put(new_parent); in kobject_move() 595 kobject_put(kobj); in kobject_move() 644 kobject_put(parent); in kobject_del() 714 kobject_put(parent); in kobject_cleanup() 756 EXPORT_SYMBOL(kobject_put); 817 kobject_put(kobj); in kobject_create_and_add() [all …]
|
/linux/net/sunrpc/ |
A D | sysfs.c | 57 kobject_put(kobj); in rpc_sysfs_object_alloc() 358 kobject_put(rpc_sunrpc_client_kobj); in rpc_sysfs_init() 456 kobject_put(rpc_sunrpc_client_kobj); in rpc_sysfs_exit() 457 kobject_put(rpc_sunrpc_xprt_switch_kobj); in rpc_sysfs_exit() 474 kobject_put(&p->kobject); in rpc_sysfs_client_alloc() 496 kobject_put(&p->kobject); in rpc_sysfs_xprt_switch_alloc() 515 kobject_put(&p->kobject); in rpc_sysfs_xprt_alloc() 595 kobject_put(&rpc_client->kobject); in rpc_sysfs_client_destroy() 607 kobject_put(&rpc_xprt_switch->kobject); in rpc_sysfs_xprt_switch_destroy() 619 kobject_put(&rpc_xprt->kobject); in rpc_sysfs_xprt_destroy()
|
/linux/fs/nfs/ |
A D | sysfs.c | 51 kobject_put(kobj); in nfs_netns_object_alloc() 72 kobject_put(nfs_client_kobj); in nfs_sysfs_exit() 165 kobject_put(&p->kobject); in nfs_netns_client_alloc() 188 kobject_put(&clp->kobject); in nfs_netns_sysfs_destroy()
|
/linux/drivers/infiniband/hw/usnic/ |
A D | usnic_ib_sysfs.c | 259 kobject_put(&us_ibdev->ib_dev.dev.kobj); in usnic_ib_sysfs_register_usdev() 268 kobject_put(us_ibdev->qpn_kobj); in usnic_ib_sysfs_unregister_usdev() 282 kobject_put(us_ibdev->qpn_kobj); in usnic_ib_sysfs_qpn_add() 293 kobject_put(&qp_grp->kobj); in usnic_ib_sysfs_qpn_remove() 294 kobject_put(us_ibdev->qpn_kobj); in usnic_ib_sysfs_qpn_remove()
|
/linux/mm/ |
A D | cma_sysfs.c | 97 kobject_put(&cma_kobj->kobj); in cma_sysfs_init() 106 kobject_put(&cma->cma_kobj->kobj); in cma_sysfs_init() 108 kobject_put(cma_kobj_root); in cma_sysfs_init()
|
/linux/arch/powerpc/platforms/powernv/ |
A D | opal-dump.c | 97 kobject_put(&dump_obj->kobj); in dump_ack_store() 352 kobject_put(&dump->kobj); in create_dump_obj() 380 kobject_put(&dump->kobj); in create_dump_obj() 384 kobject_put(&dump->kobj); in create_dump_obj() 408 kobject_put(kobj); in process_dump() 436 kobject_put(&dump_kset->kobj); in opal_platform_dump_init()
|
A D | opal-elog.c | 81 kobject_put(&elog_obj->kobj); in elog_ack_store() 226 kobject_put(&elog->kobj); in create_elog_obj() 251 kobject_put(&elog->kobj); in create_elog_obj() 255 kobject_put(&elog->kobj); in create_elog_obj() 296 kobject_put(kobj); in elog_event()
|
/linux/drivers/vfio/mdev/ |
A D | mdev_sysfs.c | 122 kobject_put(&type->kobj); in add_mdev_supported_type() 145 kobject_put(type->devices_kobj); in add_mdev_supported_type() 150 kobject_put(&type->kobj); in add_mdev_supported_type() 161 kobject_put(type->devices_kobj); in remove_mdev_supported_type() 164 kobject_put(&type->kobj); in remove_mdev_supported_type()
|
/linux/drivers/platform/x86/ |
A D | uv_sysfs.c | 272 kobject_put(&uv_hubs[i]->kobj); in uv_hubs_init() 289 kobject_put(&uv_hubs[i]->kobj); in uv_hubs_exit() 417 kobject_put(&uv_hubs[j]->ports[k]->kobj); in uv_ports_init() 439 kobject_put(&uv_hubs[j]->ports[k]->kobj); in uv_ports_exit() 643 kobject_put(&top_obj->kobj); in init_pci_top_obj() 705 kobject_put(&uv_pci_objs[k]->kobj); in pci_topology_init() 718 kobject_put(&uv_pci_objs[k]->kobj); in pci_topology_exit() 838 kobject_put(sgi_uv_kobj); in uv_sysfs_hubless_init() 895 kobject_put(sgi_uv_kobj); in uv_sysfs_init() 902 kobject_put(sgi_uv_kobj); in uv_sysfs_hubless_exit() [all …]
|
/linux/block/ |
A D | blk-mq-sysfs.c | 31 kobject_put(&ctx->ctxs->kobj); in blk_mq_ctx_sysfs_release() 220 kobject_put(&dev->kobj); in blk_mq_unregister_dev() 237 kobject_put(&ctx->kobj); in blk_mq_sysfs_deinit() 239 kobject_put(q->mq_kobj); in blk_mq_sysfs_deinit() 288 kobject_put(&dev->kobj); in __blk_mq_register_dev()
|
/linux/drivers/pci/ |
A D | slot.c | 129 kobject_put(dup_slot); in make_slot_name() 248 kobject_put(&slot->kobj); in pci_create_slot() 281 kobject_put(&slot->kobj); in pci_create_slot() 318 kobject_put(&slot->kobj); in pci_destroy_slot() 347 kobject_put(kobj); in pci_hp_create_module_link()
|
/linux/drivers/staging/greybus/ |
A D | audio_manager.c | 79 kobject_put(&module->kobj); in gb_audio_manager_remove() 96 kobject_put(&module->kobj); in gb_audio_manager_remove_all() 122 kobject_put(&module->kobj); in gb_audio_manager_put_module()
|
/linux/drivers/md/bcache/ |
A D | stats.c | 119 kobject_put(&acc->total.kobj); in bch_cache_accounting_destroy() 120 kobject_put(&acc->five_minute.kobj); in bch_cache_accounting_destroy() 121 kobject_put(&acc->hour.kobj); in bch_cache_accounting_destroy() 122 kobject_put(&acc->day.kobj); in bch_cache_accounting_destroy()
|
/linux/arch/x86/kernel/ |
A D | ksysfs.c | 251 kobject_put(kobj); in create_setup_data_node() 258 kobject_put(kobj); in cleanup_setup_data_node() 322 kobject_put(setup_data_kobj); in create_setup_data_nodes() 351 kobject_put(boot_params_kobj); in boot_params_ksysfs_init()
|
/linux/fs/btrfs/ |
A D | sysfs.c | 1170 kobject_put(&fs_devs->fsid_kobj); in __btrfs_sysfs_remove_fsid() 1225 kobject_put(fs_info->debug_kobj); in btrfs_sysfs_remove_mounted() 1359 kobject_put(&rkobj->kobj); in btrfs_sysfs_add_block_group_type() 1373 kobject_put(&rkobj->kobj); in btrfs_sysfs_add_block_group_type() 1395 kobject_put(kobj); in btrfs_sysfs_remove_space_info() 1399 kobject_put(&space_info->kobj); in btrfs_sysfs_remove_space_info() 1432 kobject_put(&space_info->kobj); in btrfs_sysfs_add_space_info_type() 1455 kobject_put(&device->devid_kobj); in btrfs_sysfs_remove_device() 1633 kobject_put(&device->devid_kobj); in btrfs_sysfs_add_device() 1910 kobject_put(&qgroup->kobj); in btrfs_sysfs_add_one_qgroup() [all …]
|
/linux/arch/powerpc/kernel/ |
A D | secvar-sysfs.c | 196 kobject_put(kobj); in secvar_sysfs_load() 226 kobject_put(secvar_kobj); in secvar_sysfs_init() 233 kobject_put(secvar_kobj); in secvar_sysfs_init()
|
/linux/drivers/uio/ |
A D | uio.c | 360 kobject_put(&portio->kobj); in uio_dev_add_attributes() 362 kobject_put(idev->portio_dir); in uio_dev_add_attributes() 369 kobject_put(&map->kobj); in uio_dev_add_attributes() 371 kobject_put(idev->map_dir); in uio_dev_add_attributes() 386 kobject_put(&mem->map->kobj); in uio_dev_del_attributes() 388 kobject_put(idev->map_dir); in uio_dev_del_attributes() 394 kobject_put(&port->portio->kobj); in uio_dev_del_attributes() 396 kobject_put(idev->portio_dir); in uio_dev_del_attributes() 856 kobject_put(&cdev->kobj); in uio_major_init()
|