Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:percpu_counter_add

Proto:static inline void percpu_counter_add(struct percpu_counter *fbc, s64 amount)

Type:void

Parameter:

TypeParameterName
struct percpu_counter *fbc
s64amount
135  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
136  count += amount
137  preempt_enable()
Caller
NameDescribe
fprop_new_periodDeclare @periods new periods. It is upto the caller to make sure period* transitions cannot happen in parallel.* The function returns true if the proportions are still defined and false* if aging zeroed out all events
__fprop_inc_singleEvent of type pl happened
__fprop_inc_percpuEvent of type pl happened
__fprop_inc_percpu_maxLike __fprop_inc_percpu() except that event is counted only if the given* type has fraction smaller than @max_frac/FPROP_FRAC_BASE