Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\flex_proportions.c Create Date:2022-07-28 06:14:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:fprop_fraction_percpu

Proto:void fprop_fraction_percpu(struct fprop_global *p, struct fprop_local_percpu *pl, unsigned long *numerator, unsigned long *denominator)

Type:void

Parameter:

TypeParameterName
struct fprop_global *p
struct fprop_local_percpu *pl
unsigned long *numerator
unsigned long *denominator
234  Do
235  seq = ad_seqcount_begin - begin a seq-read critical section*@s: pointer to seqcount_t* Returns: count to be passed to read_seqcount_retry* read_seqcount_begin opens a read critical section of the given seqcount
236  fprop_reflect_period_percpu(p, pl)
237  num = percpu_counter is intended to track positive numbers. In the UP case the* number should never be negative.
238  den = percpu_counter is intended to track positive numbers. In the UP case the* number should never be negative.
239  When ad_seqcount_retry - end a seq-read critical section*@s: pointer to seqcount_t*@start: count, from read_seqcount_begin* Returns: 1 if retry is required, else 0* read_seqcount_retry closes a read critical section of the given seqcount cycle
245  If den <= num Then
246  If num Then den = num
248  Else den = 1
251  denominator = den
252  numerator = num
Caller
NameDescribe
__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