Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:int poll_select_set_timeout(struct timespec64 *to, time64_t sec, long nsec)

Type:int

Parameter:

TypeParameterName
struct timespec64 *to
time64_tsec
longnsec
275  struct timespec64 ts = { seconds = sec, nanoseconds = nsec}
277  If Not Returns true if the timespec64 is norm, false if denorm: Then Return -EINVAL
281  If Not sec && Not nsec Then
282  seconds = nanoseconds = 0
283  Else
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  Return 0
Caller
NameDescribe
kern_select
do_pselect
SYSCALL_DEFINE3
SYSCALL_DEFINE5
do_compat_select
do_compat_pselect
COMPAT_SYSCALL_DEFINE5New compat syscall for 64 bit time_t