函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:add_latency_sample

函数原型:static void add_latency_sample(struct kyber_cpu_latency *cpu_latency, unsigned int sched_domain, unsigned int type, u64 target, u64 latency)

返回类型:void

参数:

类型参数名称
struct kyber_cpu_latency *cpu_latency
unsigned intsched_domain
unsigned inttype
u64target
u64latency
624  如果latency大于0则
625  divisor等于max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u64, target >> KYBER_LATENCY_SHIFT, 1)
626  bucket等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedint, div64_u64 - unsigned 64bit divide with 64bit divisor*@dividend: 64bit dividend*@divisor: 64bit divisor* This implementation is a modified version of the algorithm proposed* by the book 'Hacker's Delight'. The original source and full proof, KYBER_LATENCY_BUCKETS - 1)
628  否则
629  bucket等于0
632  atomic_inc( & buckets[sched_domain][type][bucket])
调用者
名称描述
kyber_completed_request