函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:percpu_ref_switch_to_atomic_rcu

函数原型:static void percpu_ref_switch_to_atomic_rcu(struct rcu_head *rcu)

返回类型:void

参数:

类型参数名称
struct rcu_head *rcu
135  ref等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(rcu, structpercpu_ref, rcu)
136  __percpupercpu_count等于percpu_count_ptr(ref)
137  count等于0
140  遍历可用CPU(cpu)
141  count加等于per_cpu_ptr(percpu_count, cpu)
143  pr_debug("global %ld percpu %ld", atomic_long_read( & count), (long)count)
158  atomic_long_add((long)count - Initially, a percpu refcount is just a set of percpu counters, & count)
160  WARN_ONCE(atomic_long_read( & count) <= 0, "percpu ref (%ps) <= 0 (%ld) after switching to atomic", release, atomic_long_read( & count))
165  percpu_ref_call_confirm_rcu(rcu)