函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\refcount.h Create Date:2022-07-27 06:40:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:_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

函数原型:static inline __must_check bool refcount_dec_and_test(refcount_t *r)

返回类型:bool

参数:

类型参数名称
refcount_t *r
281  返回:_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
调用者
名称描述
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
put_task_struct
kref_putkref_put - decrement refcount for object.*@kref: object.*@release: pointer to the function that will clean up the object when the* last reference to the object is released.* This pointer is required, and it is not acceptable to pass kfree
inet_frag_put
skb_unrefskb_unref - decrement the skb's reference count*@skb: buffer* Returns true if we can free the skb.
put_cgroup_ns
neigh_releaseNeighbour references
fib_rule_put
sock_putUngrab socket and destroy it, if it was the last reference.
reqsk_put
txopt_put
in6_dev_put
in6_ifa_put
fib_info_put
posix_acl_releaseFree an ACL handle.
wb_congested_put
sk_psock_put
ipc_rcu_putref
netlbl_secattr_cache_freelbl_secattr_cache_free - Frees a netlbl_lsm_cache struct*@cache: the struct to free* Description:* Frees @secattr including all of the internal buffers.
fib6_info_release
xfrm_pol_put
xfrm_state_put
xfrm_state_put_sync