函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:fprop_fraction_percpu

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

返回类型:void

参数:

类型参数名称
struct fprop_global *p
struct fprop_local_percpu *pl
unsigned long *numerator
unsigned long *denominator
234  循环
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 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循环
245  如果den小于等于num
246  如果numden等于num
248  否则den等于1
251  denominator等于den
252  numerator等于num
调用者
名称描述
__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
__wb_calc_thresh__wb_calc_thresh - @wb's share of dirty throttling threshold*@dtc: dirty_throttle_context of interest* Note that balance_dirty_pages() will only seriously take it as a hard limit* when sleeping max_pause per page is not enough to keep the dirty pages under