函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Return fraction of events of type pl

函数原型:void fprop_fraction_single(struct fprop_global *p, struct fprop_local_single *pl, unsigned long *numerator, unsigned long *denominator)

返回类型:void

参数:

类型参数名称
struct fprop_global *p
struct fprop_local_single *pl
unsigned long *numerator
unsigned long *denominator
146  循环
147  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
148  fprop_reflect_period_single(p, pl)
149  num等于he local events counter
150  den等于percpu_counter is intended to track positive numbers. In the UP case the* number should never be negative.
151 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循环
157  如果den小于等于num
158  如果numden等于num
160  否则den等于1
163  denominator等于den
164  numerator等于num