Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\refcount.h Create Date:2022-07-28 05:38:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:_dec_and_test - decrement a refcount and test if it is 0*@r: the refcount* Similar to atomic_dec_and_test(), it will WARN on underflow and fail to* decrement when saturated at REFCOUNT_SATURATED

Proto:static inline __must_check bool refcount_dec_and_test(refcount_t *r)

Type:bool

Parameter:

TypeParameterName
refcount_t *r
281  Return _sub_and_test - subtract from a refcount and test if it is 0*@i: amount to subtract from the refcount*@r: the refcount* Similar to atomic_dec_and_test(), but it will WARN, return false and* ultimately leak on underflow and will fail to decrement when
Caller
NameDescribe
refcount_dec_and_mutex_lock_dec_and_mutex_lock - return holding mutex if able to decrement* refcount to 0*@r: the refcount*@lock: the mutex to be locked* Similar to atomic_dec_and_mutex_lock(), it will WARN on underflow and fail* to decrement when saturated at REFCOUNT_SATURATED
refcount_dec_and_lock_dec_and_lock - return holding spinlock if able to decrement* refcount to 0*@r: the refcount*@lock: the spinlock to be locked* Similar to atomic_dec_and_lock(), it will WARN on underflow and fail to* decrement when saturated at REFCOUNT_SATURATED
refcount_dec_and_lock_irqsave_dec_and_lock_irqsave - return holding spinlock with disabled* interrupts if able to decrement refcount to 0*@r: the refcount*@lock: the spinlock to be locked*@flags: saved IRQ-flags if the is acquired* Same as refcount_dec_and_lock() above except that
threshold_remove_bank
put_signal_struct
__cleanup_sighand
put_task_struct_rcu_user
put_pid
put_pi_stateDrops a reference to the pi_state object and frees or caches it* when the last reference is gone.
put_css_set_locked
audit_put_watch
put_tree
kcov_put
buffer_ref_release
bpf_trampoline_put
btf_put
put_ctx
ring_buffer_put
rb_free_aux
put_uprobe
ipc_rcu_putref
exit_semadd semadj values to semaphores, free undo structures
flush_end_io
blk_mq_free_request
blk_mq_check_expired
bsg_put_device
key_putkey_put - Discard a reference to a key.*@key: The key to discard a reference from.* Discard a reference to a key, and when all the references are gone, we* schedule the cleanup task to come and pull it out of the tree in process
key_put_tagkey_put_tag - Release a ref on a tag.*@tag: The tag to release.* This releases a reference the given tag and returns true if that ref was the* last one.
put_fc_logFree a logging structure.
fsnotify_put_groupDrop a reference to a group. Free it if it's through.
fsnotify_put_mark
userfaultfd_ctx_putserfaultfd_ctx_put - Releases a reference to the internal userfaultfd* context.*@ctx: [in] Pointer to userfaultfd context.* The userfaultfd context reference must have been previously acquired either* with userfaultfd_ctx_get() or userfaultfd_ctx_fdget().
iocb_put
io_put_req_find_nextDrop reference to request, return next in chain (if there is one) if this* was the last reference to this request.
io_put_req
io_iopoll_completeFind and free completed poll iocbs
io_worker_release
io_worker_exit
add_existing_master_key
do_remove_keyTry to remove an fscrypt master encryption key
put_crypt_info