函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cev_delta2ns

函数原型:static u64 cev_delta2ns(unsigned long latch, struct clock_event_device *evt, bool ismax)

返回类型:u64

参数:

类型参数名称
unsigned longlatch
struct clock_event_device *evt
boolismax
35  clc等于latch左移shift
38  如果WARN_ON(!mult)则mult等于1
40  rnd等于mult减1
46  如果clc右移shift位不等于latchclc等于0ULL的反
68  如果0ULL的反减clc大于rnd且非ismaxmult小于等于1ULL左移shift位的值则clc加等于rnd
72  do_div() is NOT a C function(clc, mult)
75  返回:如果clc大于1000则clc否则1000
调用者
名称描述
clockevent_delta2nslockevents_delta2ns - Convert a latch value (device ticks) to nanoseconds*@latch: value to convert*@evt: pointer to clock event device descriptor* Math helper, returns latch value converted to nanoseconds (bound checked)
clockevents_config