/linux/Documentation/translations/zh_CN/core-api/ |
A D | kref.rst | 75 2) 当你完成对一个指针的处理时,你必须调用kref_put():: 77 kref_put(&data->refcount, data_release); 101 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); 207 如果你不想在整个释放操作过程中持有锁,kref_put()的返回值是有用的。假设你不想在 213 /* 所有的工作都是在从kref_put()返回后完成的。*/ [all …]
|
/linux/net/batman-adv/ |
A D | originator.h | 96 kref_put(&orig_vlan->refcount, batadv_orig_node_vlan_release); in batadv_orig_node_vlan_put() 110 kref_put(&neigh_ifinfo->refcount, batadv_neigh_ifinfo_release); in batadv_neigh_ifinfo_put() 124 kref_put(&hardif_neigh->refcount, batadv_hardif_neigh_release); in batadv_hardif_neigh_put() 137 kref_put(&neigh_node->refcount, batadv_neigh_node_release); in batadv_neigh_node_put() 151 kref_put(&orig_ifinfo->refcount, batadv_orig_ifinfo_release); in batadv_orig_ifinfo_put() 164 kref_put(&orig_node->refcount, batadv_orig_node_release); in batadv_orig_node_put()
|
/linux/fs/nfs/ |
A D | nfs42xattr.c | 331 kref_put(&old->ref, nfs4_xattr_free_entry_cb); in nfs4_xattr_set_listcache() 402 kref_put(&entry->ref, nfs4_xattr_free_entry_cb); in nfs4_xattr_discard_cache() 409 kref_put(&cache->ref, nfs4_xattr_free_cache_cb); in nfs4_xattr_discard_cache() 584 kref_put(&entry->ref, nfs4_xattr_free_entry_cb); in nfs4_xattr_hash_remove() 635 kref_put(&entry->ref, nfs4_xattr_free_entry_cb); in nfs4_xattr_cache_get() 641 kref_put(&cache->ref, nfs4_xattr_free_cache_cb); in nfs4_xattr_cache_get() 679 kref_put(&cache->ref, nfs4_xattr_free_cache_cb); in nfs4_xattr_cache_list() 709 kref_put(&entry->ref, nfs4_xattr_free_entry_cb); in nfs4_xattr_cache_add() 712 kref_put(&cache->ref, nfs4_xattr_free_cache_cb); in nfs4_xattr_cache_add() 734 kref_put(&cache->ref, nfs4_xattr_free_cache_cb); in nfs4_xattr_cache_remove() [all …]
|
/linux/Documentation/core-api/ |
A D | kref.rst | 67 kref_put(&data->refcount, data_release); 95 kref_put(&data->refcount, data_release); 112 kref_put(&data->refcount, data_release); 120 kref_put(&data->refcount, data_release); 161 kref_put(&obj->ref, obj_cleanup); 207 kref_put(&entry->refcount, release_entry); 214 pointless to do so). You could use kref_put() as follows:: 218 /* All work is done after the return from kref_put(). */ 224 if (kref_put(&entry->refcount, release_entry)) { 265 kref_put(&entry->refcount, release_entry); [all …]
|
/linux/drivers/scsi/libfc/ |
A 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() 403 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_work() 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() 806 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_flogi_resp() 961 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_recv_flogi_req() 966 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_recv_flogi_req() 1046 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_plogi_resp() [all …]
|
/linux/drivers/scsi/qedf/ |
A 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() 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() 767 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_process_seq_cleanup_compl() 805 kref_put(&orig_io_req->refcount, qedf_release_cmd); in qedf_requeue_io_req() [all …]
|
A 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() 884 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_post_io_req() 893 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_post_io_req() 912 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_post_io_req() 1317 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_scsi_completion() 1414 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_scsi_done() 1694 kref_put(&io_req->refcount, in qedf_flush_active_ios() 1950 kref_put(&rdata->kref, fc_rport_destroy); in qedf_initiate_abts() [all …]
|
/linux/drivers/scsi/bnx2fc/ |
A 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() 1209 kref_put(&io_req->refcount, in bnx2fc_eh_abort() 1229 kref_put(&io_req->refcount, in bnx2fc_eh_abort() 1281 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_eh_abort() 1397 kref_put(&io_req->refcount, in bnx2fc_process_abts_compl() 1477 kref_put(&io_req->refcount, in bnx2fc_lun_reset_cmpl() 1510 kref_put(&io_req->refcount, in bnx2fc_tgt_reset_cmpl() [all …]
|
A 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() 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() 827 kref_put(&els_req->refcount, in bnx2fc_process_els_compl() [all …]
|
/linux/drivers/gpu/drm/lima/ |
A D | lima_ctx.c | 60 kref_put(&ctx->refcnt, lima_ctx_do_release); in lima_ctx_free() 81 kref_put(&ctx->refcnt, lima_ctx_do_release); in lima_ctx_put() 96 kref_put(&ctx->refcnt, lima_ctx_do_release); in lima_ctx_mgr_fini()
|
/linux/drivers/gpu/drm/amd/display/dc/core/ |
A D | dc_surface.c | 189 kref_put(&plane_state->refcount, dc_plane_state_free); in dc_plane_state_release() 205 kref_put(&(*gamma)->refcount, dc_gamma_free); in dc_gamma_release() 236 kref_put(&tf->refcount, dc_transfer_func_free); in dc_transfer_func_release() 280 kref_put(&lut->refcount, dc_3dlut_func_free); in dc_3dlut_func_release()
|
/linux/drivers/gpu/host1x/ |
A D | intr.c | 83 kref_put(&waiter->refcount, waiter_release); in remove_completed_waiters() 155 kref_put(&waiter->refcount, waiter_release); in run_handlers() 269 kref_put(&waiter->refcount, waiter_release); in host1x_intr_put_ref() 279 kref_put(&waiter->refcount, waiter_release); in host1x_intr_put_ref() 343 kref_put(&waiter->refcount, waiter_release); in host1x_intr_stop()
|
/linux/drivers/usb/misc/ |
A D | uss720.c | 90 kref_put(&priv->ref_count, destroy_priv); in destroy_async() 119 kref_put(&rq->ref_count, destroy_async); in async_complete() 146 kref_put(&rq->ref_count, destroy_async); in submit_async_request() 151 kref_put(&rq->ref_count, destroy_async); in submit_async_request() 211 kref_put(&rq->ref_count, destroy_async); in get_1284_register() 220 kref_put(&rq->ref_count, destroy_async); in get_1284_register() 242 kref_put(&rq->ref_count, destroy_async); in set_1284_register() 744 kref_put(&priv->ref_count, destroy_priv); in uss720_probe() 763 kref_put(&priv->ref_count, destroy_priv); in uss720_disconnect()
|
A 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/fs/btrfs/ |
A D | reada.c | 192 kref_put(&rc->refcnt, reada_control_release); in __readahead_hook() 195 kref_put(&rc->refcnt, reada_control_release); in __readahead_hook() 380 kref_put(&zone->refcnt, reada_zone_release); in reada_find_extent() 483 kref_put(&zone->refcnt, reada_zone_release); in reada_find_extent() 488 kref_put(&zone->refcnt, reada_zone_release); in reada_find_extent() 526 kref_put(&zone->refcnt, reada_zone_release); in reada_extent_put() 531 kref_put(&zone->refcnt, reada_zone_release); in reada_extent_put() 621 kref_put(&dev->reada_curr_zone->refcnt, reada_zone_release); in reada_pick_zone() 1016 kref_put(&rc->refcnt, reada_control_release); in btrfs_reada_wait() 1033 kref_put(&rc->refcnt, reada_control_release); in btrfs_reada_wait() [all …]
|
/linux/sound/soc/qcom/qdsp6/ |
A 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/drivers/infiniband/hw/qedr/ |
A 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() 653 kref_put(&ep->refcnt, qedr_iw_free_ep); in qedr_iw_connect() 779 kref_put(&ep->refcnt, qedr_iw_free_ep); in qedr_iw_accept() 810 kref_put(&qp->refcnt, qedr_iw_free_qp); in qedr_iw_qp_rem_ref()
|
/linux/net/tls/ |
A D | tls_toe.c | 93 kref_put(&dev->kref, dev->release); in tls_toe_unhash() 114 kref_put(&dev->kref, dev->release); in tls_toe_hash()
|
/linux/drivers/target/iscsi/cxgbit/ |
A 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/drivers/gpu/drm/ |
A 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/drivers/rapidio/devices/ |
A D | rio_mport_cdev.c | 480 kref_put(&map->ref, mport_release_mapping); in rio_mport_obw_free() 590 kref_put(&priv->dma_ref, mport_release_dma); in dma_req_free() 603 kref_put(&req->refcount, dma_req_free); in dma_xfer_callback() 685 kref_put(&priv->dma_ref, mport_release_dma); in put_dma_channel() 749 kref_put(&req->refcount, dma_req_free); in do_dma_request() 957 kref_put(&req->refcount, dma_req_free); in rio_dma_transfer() 1074 kref_put(&req->refcount, dma_req_free); in rio_mport_wait_for_async_dma() 1158 kref_put(&map->ref, mport_release_mapping); in rio_mport_free_dma() 1977 kref_put(&req->refcount, dma_req_free); in mport_cdev_release_dma() 2184 kref_put(&map->ref, mport_release_mapping); in mport_mm_close() [all …]
|
/linux/drivers/scsi/device_handler/ |
A D | scsi_dh_alua.c | 382 kref_put(&old_pg->kref, release_port_group); in alua_check_vpd() 690 kref_put(&tmp_pg->kref, release_port_group); in alua_rtpg() 876 kref_put(&pg->kref, release_port_group); in alua_rtpg_work() 959 kref_put(&pg->kref, release_port_group); in alua_rtpg_work() 1010 kref_put(&pg->kref, release_port_group); in alua_rtpg_queue() 1124 kref_put(&pg->kref, release_port_group); in alua_activate() 1150 kref_put(&pg->kref, release_port_group); in alua_check() 1238 kref_put(&pg->kref, release_port_group); in alua_bus_detach()
|
/linux/arch/x86/kernel/cpu/sgx/ |
A 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/drivers/mmc/host/ |
A D | vub300.c | 401 kref_put(&vub300->kref, vub300_delete); in vub300_queue_cmnd_work() 421 kref_put(&vub300->kref, vub300_delete); in vub300_queue_poll_work() 441 kref_put(&vub300->kref, vub300_delete); in vub300_queue_dead_work() 682 kref_put(&vub300->kref, vub300_delete); in vub300_pollwork_thread() 705 kref_put(&vub300->kref, vub300_delete); in vub300_pollwork_thread() 713 kref_put(&vub300->kref, vub300_delete); in vub300_deadwork_thread() 738 kref_put(&vub300->kref, vub300_delete); in vub300_deadwork_thread() 746 kref_put(&vub300->kref, vub300_delete); in vub300_inactivity_timer_expired() 1744 kref_put(&vub300->kref, vub300_delete); in vub300_cmndwork_thread() 2036 kref_put(&vub300->kref, vub300_delete); in vub300_mmc_set_ios() [all …]
|
/linux/drivers/usb/mon/ |
A D | mon_main.c | 76 kref_put(&mbus->ref, mon_bus_drop); in mon_reader_del() 221 kref_put(&mbus->ref, mon_bus_drop); in mon_bus_remove() 417 kref_put(&mbus->ref, mon_bus_drop); in mon_exit()
|