/linux-6.12.1/Documentation/translations/zh_CN/core-api/ |
D | kref.rst | 75 2) 当你完成对一个指针的处理时,你必须调用kref_put():: 77 kref_put(&data->refcount, data_release); 84 须按顺序访问,在kref_put()期间不能发生kref_get(),并且该结构体在kref_get() 101 kref_put(&data->refcount, data_release); 118 kref_put(&data->refcount, data_release); 126 kref_put(&data->refcount, data_release); 130 这样,两个线程处理数据的顺序并不重要,kref_put()处理知道数据不再被引用并释 134 在上面的例子中,kref_put()在成功和错误路径中都会被调用2次。这是必要的,因 159 kref_put(&obj->ref, obj_cleanup); 203 kref_put(&entry->refcount, release_entry); [all …]
|
/linux-6.12.1/net/batman-adv/ |
D | originator.h | 99 kref_put(&orig_vlan->refcount, batadv_orig_node_vlan_release); in batadv_orig_node_vlan_put() 113 kref_put(&neigh_ifinfo->refcount, batadv_neigh_ifinfo_release); in batadv_neigh_ifinfo_put() 127 kref_put(&hardif_neigh->refcount, batadv_hardif_neigh_release); in batadv_hardif_neigh_put() 140 kref_put(&neigh_node->refcount, batadv_neigh_node_release); in batadv_neigh_node_put() 154 kref_put(&orig_ifinfo->refcount, batadv_orig_ifinfo_release); in batadv_orig_ifinfo_put() 167 kref_put(&orig_node->refcount, batadv_orig_node_release); in batadv_orig_node_put()
|
/linux-6.12.1/fs/nfs/ |
D | nfs42xattr.c | 330 kref_put(&old->ref, nfs4_xattr_free_entry_cb); in nfs4_xattr_set_listcache() 401 kref_put(&entry->ref, nfs4_xattr_free_entry_cb); in nfs4_xattr_discard_cache() 408 kref_put(&cache->ref, nfs4_xattr_free_cache_cb); in nfs4_xattr_discard_cache() 462 kref_put(&cache->ref, nfs4_xattr_free_cache_cb); in nfs4_xattr_get_cache() 488 kref_put(&cache->ref, nfs4_xattr_free_cache_cb); in nfs4_xattr_get_cache() 558 kref_put(&oldentry->ref, nfs4_xattr_free_entry_cb); in nfs4_xattr_hash_add() 583 kref_put(&entry->ref, nfs4_xattr_free_entry_cb); in nfs4_xattr_hash_remove() 634 kref_put(&entry->ref, nfs4_xattr_free_entry_cb); in nfs4_xattr_cache_get() 640 kref_put(&cache->ref, nfs4_xattr_free_cache_cb); in nfs4_xattr_cache_get() 678 kref_put(&cache->ref, nfs4_xattr_free_cache_cb); in nfs4_xattr_cache_list() [all …]
|
/linux-6.12.1/Documentation/core-api/ |
D | kref.rst | 65 2) When you are done with a pointer, you must call kref_put():: 67 kref_put(&data->refcount, data_release); 77 where a kref_put() cannot occur during the kref_get(), and the 95 kref_put(&data->refcount, data_release); 112 kref_put(&data->refcount, data_release); 120 kref_put(&data->refcount, data_release); 125 data, the kref_put() handles knowing when the data is not referenced 131 In the above example, kref_put() will be called 2 times in both success 161 kref_put(&obj->ref, obj_cleanup); 207 kref_put(&entry->refcount, release_entry); [all …]
|
/linux-6.12.1/drivers/scsi/libfc/ |
D | fc_rport.c | 137 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_create() 294 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_work() 320 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_work() 347 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_work() 369 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_work() 384 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_work() 403 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_work() 489 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_enter_delete() 556 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_enter_ready() 603 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_timeout() [all …]
|
/linux-6.12.1/drivers/gpu/drm/lima/ |
D | lima_ctx.c | 61 kref_put(&ctx->refcnt, lima_ctx_do_release); in lima_ctx_free() 82 kref_put(&ctx->refcnt, lima_ctx_do_release); in lima_ctx_put() 97 kref_put(&ctx->refcnt, lima_ctx_do_release); in lima_ctx_mgr_fini()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_surface.c | 181 kref_put(&plane_state->refcount, dc_plane_state_free); in dc_plane_state_release() 197 kref_put(&(*gamma)->refcount, dc_gamma_free); in dc_gamma_release() 228 kref_put(&tf->refcount, dc_transfer_func_free); in dc_transfer_func_release() 272 kref_put(&lut->refcount, dc_3dlut_func_free); in dc_3dlut_func_release()
|
/linux-6.12.1/drivers/scsi/qedf/ |
D | qedf_els.c | 84 kref_put(&els_req->refcount, qedf_release_cmd); in qedf_initiate_els() 97 kref_put(&els_req->refcount, qedf_release_cmd); in qedf_initiate_els() 188 kref_put(&els_req->refcount, qedf_release_cmd); in qedf_process_els_compl() 222 kref_put(&orig_io_req->refcount, qedf_release_cmd); in qedf_rrq_compl() 232 kref_put(&rrq_req->refcount, qedf_release_cmd); in qedf_rrq_compl() 262 kref_put(&aborted_io_req->refcount, qedf_release_cmd); in qedf_send_rrq() 324 kref_put(&aborted_io_req->refcount, qedf_release_cmd); in qedf_send_rrq() 406 kref_put(&rdata->kref, fc_rport_destroy); in qedf_restart_rport() 618 kref_put(&orig_io_req->refcount, qedf_release_cmd); in qedf_srr_compl() 688 kref_put(&orig_io_req->refcount, qedf_release_cmd); in qedf_send_srr() [all …]
|
D | qedf_io.c | 54 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_cmd_timeout() 90 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_cmd_timeout() 383 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_alloc_cmd() 887 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_post_io_req() 896 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_post_io_req() 915 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_post_io_req() 1319 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_scsi_completion() 1416 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_scsi_done() 1425 kref_put(&io_req->refcount, qedf_release_cmd); /* ID: 001 */ in qedf_scsi_done() 1581 kref_put(&els_req->refcount, qedf_release_cmd); in qedf_flush_els_req() [all …]
|
/linux-6.12.1/drivers/cdx/controller/ |
D | mcdi.c | 89 kref_put(&cmd->ref, cdx_mcdi_cmd_release); in cdx_mcdi_remove_cmd() 331 kref_put(&cmd->ref, cdx_mcdi_cmd_release); in cdx_mcdi_process_cleanup_list() 419 kref_put(&wait_data->ref, cdx_mcdi_blocking_data_release); in cdx_mcdi_rpc_completer() 463 kref_put(&wait_data->ref, cdx_mcdi_blocking_data_release); in cdx_mcdi_rpc_sync() 484 kref_put(&wait_data->ref, cdx_mcdi_blocking_data_release); in cdx_mcdi_rpc_sync() 506 kref_put(&cmd->ref, cdx_mcdi_cmd_release); in cdx_mcdi_rpc_async_internal() 511 kref_put(&cmd->ref, cdx_mcdi_cmd_release); in cdx_mcdi_rpc_async_internal() 580 kref_put(&cmd->ref, cdx_mcdi_cmd_release); in cdx_mcdi_process_cmd() 687 kref_put(&cmd->ref, cdx_mcdi_cmd_release); in cdx_mcdi_complete_cmd() 707 kref_put(&cmd->ref, cdx_mcdi_cmd_release); in cdx_mcdi_complete_cmd()
|
/linux-6.12.1/drivers/scsi/bnx2fc/ |
D | bnx2fc_io.c | 86 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_cmd_timeout() 107 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_cmd_timeout() 124 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_cmd_timeout() 158 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_cmd_timeout() 727 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_initiate_tmf() 799 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_initiate_tmf() 1110 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_abts_cleanup() 1175 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_eh_abort() 1210 kref_put(&io_req->refcount, in bnx2fc_eh_abort() 1230 kref_put(&io_req->refcount, in bnx2fc_eh_abort() [all …]
|
D | bnx2fc_els.c | 41 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_rrq_compl() 116 kref_put(&aborted_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_send_rrq() 372 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_srr_compl() 578 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_rec_compl() 616 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_send_rec() 660 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_send_srr() 724 kref_put(&els_req->refcount, bnx2fc_cmd_release); in bnx2fc_initiate_els() 745 kref_put(&els_req->refcount, bnx2fc_cmd_release); in bnx2fc_initiate_els() 785 kref_put(&els_req->refcount, bnx2fc_cmd_release); in bnx2fc_initiate_els() 821 kref_put(&els_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_els_compl() [all …]
|
/linux-6.12.1/fs/smb/client/ |
D | cached_dir.c | 367 kref_put(&cfid->refcount, smb2_close_cached_fid); in open_cached_dir() 457 kref_put(&cfid->refcount, smb2_close_cached_fid); in drop_cached_dir_by_name() 466 kref_put(&cfid->refcount, smb2_close_cached_fid); in close_cached_dir() 531 kref_put(&cfid->refcount, smb2_close_cached_fid); in invalidate_all_cached_dirs() 534 kref_put(&cfid->refcount, smb2_close_cached_fid); in invalidate_all_cached_dirs() 547 kref_put(&cfid->refcount, smb2_close_cached_fid); in smb2_cached_lease_break() 662 kref_put(&cfid->refcount, smb2_close_cached_fid); in cfids_laundromat_worker() 665 kref_put(&cfid->refcount, smb2_close_cached_fid); in cfids_laundromat_worker()
|
/linux-6.12.1/drivers/usb/misc/ |
D | uss720.c | 91 kref_put(&priv->ref_count, destroy_priv); in destroy_async() 120 kref_put(&rq->ref_count, destroy_async); in async_complete() 147 kref_put(&rq->ref_count, destroy_async); in submit_async_request() 152 kref_put(&rq->ref_count, destroy_async); in submit_async_request() 212 kref_put(&rq->ref_count, destroy_async); in get_1284_register() 221 kref_put(&rq->ref_count, destroy_async); in get_1284_register() 243 kref_put(&rq->ref_count, destroy_async); in set_1284_register() 753 kref_put(&priv->ref_count, destroy_priv); in uss720_probe() 771 kref_put(&priv->ref_count, destroy_priv); in uss720_disconnect()
|
D | usblcd.c | 100 kref_put(&dev->kref, lcd_delete); in lcd_open() 120 kref_put(&dev->kref, lcd_delete); in lcd_release() 388 kref_put(&dev->kref, lcd_delete); in lcd_probe() 431 kref_put(&dev->kref, lcd_delete); in lcd_disconnect()
|
/linux-6.12.1/net/tls/ |
D | tls_toe.c | 95 kref_put(&dev->kref, dev->release); in tls_toe_unhash() 116 kref_put(&dev->kref, dev->release); in tls_toe_hash()
|
/linux-6.12.1/sound/soc/qcom/qdsp6/ |
D | q6adm.c | 164 kref_put(&copp->refcount, q6adm_free_copp); in q6adm_callback() 194 kref_put(&copp->refcount, q6adm_free_copp); in q6adm_callback() 200 kref_put(&copp->refcount, q6adm_free_copp); in q6adm_callback() 425 kref_put(&copp->refcount, q6adm_free_copp); in q6adm_open() 525 kref_put(&copp->refcount, q6adm_free_copp); in q6adm_matrix_map() 579 kref_put(&copp->refcount, q6adm_free_copp); in q6adm_close()
|
/linux-6.12.1/drivers/infiniband/hw/qedr/ |
D | qedr_iw_cm.c | 95 kref_put(&ep->qp->refcnt, qedr_iw_free_qp); in qedr_iw_free_ep() 178 kref_put(&ep->refcnt, qedr_iw_free_ep); in qedr_iw_close_event() 250 kref_put(&ep->refcnt, qedr_iw_free_ep); in qedr_iw_disconnect_worker() 292 kref_put(&ep->refcnt, qedr_iw_free_ep); in qedr_iw_passive_complete() 313 kref_put(&ep->refcnt, qedr_iw_free_ep); in qedr_iw_active_complete() 654 kref_put(&ep->refcnt, qedr_iw_free_ep); in qedr_iw_connect() 780 kref_put(&ep->refcnt, qedr_iw_free_ep); in qedr_iw_accept() 811 kref_put(&qp->refcnt, qedr_iw_free_qp); in qedr_iw_qp_rem_ref()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | devcom.c | 107 kref_put(&devc->ref, mlx5_devcom_dev_release); in mlx5_devcom_unregister_device() 175 kref_put(&devcom->devc->ref, mlx5_devcom_dev_release); in devcom_free_comp_dev() 177 kref_put(&comp->ref, mlx5_devcom_comp_release); in devcom_free_comp_dev() 244 kref_put(&comp->ref, mlx5_devcom_comp_release); in mlx5_devcom_register_component()
|
/linux-6.12.1/drivers/target/iscsi/cxgbit/ |
D | cxgbit.h | 255 kref_put(&cdev->kref, _cxgbit_free_cdev); in cxgbit_put_cdev() 265 kref_put(&csk->kref, _cxgbit_free_csk); in cxgbit_put_csk() 275 kref_put(&cnp->kref, _cxgbit_free_cnp); in cxgbit_put_cnp()
|
/linux-6.12.1/drivers/scsi/device_handler/ |
D | scsi_dh_alua.c | 387 kref_put(&pg->kref, release_port_group); in alua_check_vpd() 390 kref_put(&old_pg->kref, release_port_group); in alua_check_vpd() 711 kref_put(&tmp_pg->kref, release_port_group); in alua_rtpg() 902 kref_put(&pg->kref, release_port_group); in alua_rtpg_work() 984 kref_put(&pg->kref, release_port_group); in alua_rtpg_work() 1051 kref_put(&pg->kref, release_port_group); in alua_rtpg_queue() 1167 kref_put(&pg->kref, release_port_group); in alua_activate() 1193 kref_put(&pg->kref, release_port_group); in alua_check() 1280 kref_put(&pg->kref, release_port_group); in alua_bus_detach()
|
/linux-6.12.1/drivers/gpu/drm/display/ |
D | drm_dp_aux_dev.c | 116 kref_put(&aux_dev->refcount, release_drm_dp_aux_dev); in name_show() 236 kref_put(&aux_dev->refcount, release_drm_dp_aux_dev); in auxdev_release() 300 kref_put(&aux_dev->refcount, release_drm_dp_aux_dev); in drm_dp_aux_unregister_devnode()
|
/linux-6.12.1/arch/x86/kernel/cpu/sgx/ |
D | driver.c | 77 kref_put(&encl->refcount, sgx_encl_release); in sgx_release() 80 kref_put(&encl->refcount, sgx_encl_release); in sgx_release()
|
/linux-6.12.1/arch/powerpc/platforms/cell/spufs/ |
D | context.c | 81 kref_put(ctx->prof_priv_kref, ctx->prof_priv_release); in destroy_spu_context() 96 return kref_put(&ctx->kref, &destroy_spu_context); in put_spu_context()
|
/linux-6.12.1/drivers/rapidio/devices/ |
D | rio_mport_cdev.c | 482 kref_put(&map->ref, mport_release_mapping); in rio_mport_obw_free() 588 kref_put(&req->map->ref, mport_release_mapping); in dma_req_free() 592 kref_put(&priv->dma_ref, mport_release_dma); in dma_req_free() 605 kref_put(&req->refcount, dma_req_free); in dma_xfer_callback() 687 kref_put(&priv->dma_ref, mport_release_dma); in put_dma_channel() 751 kref_put(&req->refcount, dma_req_free); in do_dma_request() 959 kref_put(&req->refcount, dma_req_free); in rio_dma_transfer() 1076 kref_put(&req->refcount, dma_req_free); in rio_mport_wait_for_async_dma() 1136 kref_put(&mapping->ref, mport_release_mapping); in rio_mport_alloc_dma() 1160 kref_put(&map->ref, mport_release_mapping); in rio_mport_free_dma() [all …]
|