函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:percpu_ref_exit - undo percpu_ref_init()*@ref: percpu_ref to exit* This function exits @ref

函数原型:void percpu_ref_exit(struct percpu_ref *ref)

返回类型:void

参数:

类型参数名称
struct percpu_ref *ref
107  __percpupercpu_count等于percpu_count_ptr(ref)
109  如果percpu_count
111  WARN_ON_ONCE(confirm_switch)
112  释放内存
113  * The low bit of the pointer indicates whether the ref is in percpu * mode; if set, then get/put will manipulate the atomic_t.等于__PERCPU_REF_ATOMIC_DEAD
调用者
名称描述
percpu_ref_call_confirm_rcu
css_free_rwork_fnss destruction is four-stage process
cgroup_createThe returned cgroup is fully initialized including its control mask, but* it isn't associated with its kernfs_node and doesn't have the control* mask applied.
cgroup_bpf_releasegroup_bpf_release() - put references of all bpf programs and* release all cgroup bpf data*@work: work structure embedded into the cgroup to modify
cgroup_bpf_inheritgroup_bpf_inherit() - inherit effective programs from parent*@cgrp: the cgroup to modify
blk_alloc_queue_nodelk_alloc_queue_node - allocate a request queue*@gfp_mask: memory allocation flags*@node_id: NUMA node to allocate memory from
blkg_freelkg_free - free a blkg*@blkg: blkg to free* Free @blkg which may be partially allocated.
free_ioctx_ioctx() should be RCU delayed to synchronize against the RCU* protected lookup_ioctx() and also needs process context to call* aio_free_ring(). Use rcu_work.
ioctx_allocx_alloc* Allocates and initializes an ioctx. Returns an ERR_PTR if it failed.
io_ring_ctx_free
cgroup_setup_root
blk_cleanup_queue释放请求队列