Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\clocksource.h Create Date:2022-07-28 07:33:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:locksource_cyc2ns - converts clocksource cycles to nanoseconds*@cycles: cycles*@mult: cycle to nanosecond multiplier*@shift: cycle to nanosecond divisor (power of two)* Converts clocksource cycles to nanoseconds, using the given @mult and @shift

Proto:static inline s64 clocksource_cyc2ns(u64 cycles, unsigned int mult, unsigned int shift)

Type:s64

Parameter:

TypeParameterName
u64cycles
unsigned intmult
unsigned intshift
186  Return cycles * mult >> shift
Caller
NameDescribe
clocks_calc_max_nsecslocks_calc_max_nsecs - Returns maximum nanoseconds that can be converted*@mult: cycle to nanosecond multiplier*@shift: cycle to nanosecond divisor (power of two)*@maxadj: maximum adjustment value to mult (~11%)*@mask: bitmask for two's complement