Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\hrtimer.c Create Date:2022-07-28 10:40:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Divide a ktime value by a nanosecond value

Proto:s64 __ktime_divns(const ktime_t kt, s64 div)

Type:s64

Parameter:

TypeParameterName
const ktime_tkt
s64div
301  sft = 0
305  dclc = Convert ktime_t to nanoseconds
306  tmp = If dclc < 0 Then -dclc Else dclc
309  When div >> 32 cycle
310  sft++
311  div >>= 1
313  tmp >>= sft
314  do_div() is NOT a C function(tmp, (unsignedlong)div)
315  Return If dclc < 0 Then -tmp Else tmp
Caller
NameDescribe
ktime_divns