函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\select.c Create Date:2022-07-29 10:36:58
Last Modify:2020-03-18 10:25:38 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:select_estimate_accuracy

函数原型:u64 select_estimate_accuracy(struct timespec64 *tv)

返回类型:u64

参数:

类型参数名称
struct timespec64 *tv
84  如果rt_task(当前进程)则返回:0
87  ktime_get_ts64 - get the monotonic clock in timespec64 format*@ts: pointer to timespec variable* The function calculates the monotonic clock from the realtime* clock and the wall_to_monotonic offset and stores the result
88  now等于sub = lhs - rhs, in normalized form
89  ret等于__estimate_accuracy( & now)
90  如果ret小于timer_slack_ns则返回:timer_slack_ns
92  返回:ret
调用者
名称描述
do_select
do_poll
ep_pollp_poll - Retrieves ready events, and delivers them to the caller supplied* event buffer.*@ep: Pointer to the eventpoll context.*@events: Pointer to the userspace buffer where the ready events should be* stored.