函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ep_set_mstimeout

函数原型:static inline struct timespec64 ep_set_mstimeout(long ms)

返回类型:struct timespec64

参数:

类型参数名称
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  返回: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.
调用者
名称描述
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.