Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\select.c Create Date:2022-07-28 20:07:00
Last Modify:2020-03-18 10:25:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__estimate_accuracy

Proto:static long __estimate_accuracy(struct timespec64 *tv)

Type:long

Parameter:

TypeParameterName
struct timespec64 *tv
55  divfactor = 1000
57  If seconds < 0 Then Return 0
60  If ask_nice - return the nice value of a given task.*@p: the task in question.* Return: The nice value [ -20 ... 0 ... 19 ]. > 0 Then divfactor = divfactor / 5
63  If seconds > Estimate expected accuracy in ns from a timeval / NSEC_PER_SEC / divfactor Then Return Estimate expected accuracy in ns from a timeval
66  slack = nanoseconds / divfactor
67  slack += seconds * NSEC_PER_SEC / divfactor
69  If slack > Estimate expected accuracy in ns from a timeval Then Return Estimate expected accuracy in ns from a timeval
72  Return slack
Caller
NameDescribe
select_estimate_accuracy