函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:poll_select_set_timeout - helper function to setup the timeout value*@to: pointer to timespec64 variable for the final timeout*@sec: seconds (from user space)*@nsec: nanoseconds (from user space)* Note, we do not use a timespec for the user space value

函数原型:int poll_select_set_timeout(struct timespec64 *to, time64_t sec, long nsec)

返回类型:int

参数:

类型参数名称
struct timespec64 *to
time64_tsec
longnsec
275  struct timespec64 ts = { seconds = sec, nanoseconds = nsec}
277  如果非Returns true if the timespec64 is norm, false if denorm:则返回:负EINVAL
281  如果非sec且非nsec
282  seconds 等于 nanoseconds 等于0
283  否则
284  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
285  to等于Add two timespec64 values and do a safety check for overflow.* It's assumed that both values are valid (>= 0).* And, each timespec64 is in normalized form.
287  返回:0
调用者
名称描述
kern_select
do_pselect
SYSCALL_DEFINE3
SYSCALL_DEFINE5
do_compat_select
do_compat_pselect
COMPAT_SYSCALL_DEFINE5New compat syscall for 64 bit time_t