Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\eventpoll.c Create Date:2022-07-28 20:19:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ep_set_mstimeout

Proto:static inline struct timespec64 ep_set_mstimeout(long ms)

Type:struct timespec64

Parameter:

TypeParameterName
longms
1778  struct timespec64 now, ts = { seconds = ms / Parameters used to convert the timespec values: , nanoseconds = NSEC_PER_MSEC * (ms % Parameters used to convert the timespec values: ), }
1783  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
1784  Return 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.
Caller
NameDescribe
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.