函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:net_dim

函数原型:void net_dim(struct dim *dim, struct dim_sample end_sample)

返回类型:void

参数:

类型参数名称
struct dim *dim
struct dim_sampleend_sample
224  :state恒等于DIM_MEASURE_IN_PROGRESS
225  nevents等于Calculate the gap between two values.* Take wrap-around and variable size into consideration.(BITS_PER_TYPE(u16), event_ctr, event_ctr)
228  如果nevents小于Number of events between DIM iterations.* Causes a moderation of the algorithm run.退出
230  dim_calc_stats( & start_sample, & end_sample, & curr_stats)
231  如果net_dim_decision( & curr_stats, dim)则
234  退出
237  :state恒等于DIM_START_MEASURE
238  dim_update_sample - set a sample's fields with given values*@event_ctr: number of events to set*@packets: number of packets to set*@bytes: number of bytes to set*@s: DIM sample
240  state等于DIM_MEASURE_IN_PROGRESS
241  退出
242  :state恒等于DIM_APPLY_NEW_PROFILE
243  退出