函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\time.c Create Date:2022-07-27 11:38:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:struct timespec64 timespec64_add_safe(const struct timespec64 lhs, const struct timespec64 rhs)

返回类型:struct timespec64

参数:

类型参数名称
const struct timespec64lhs
const struct timespec64rhs
861  set_normalized_timespec - set timespec sec and nsec parts and normalize*@ts: pointer to timespec variable to be set*@sec: seconds to set*@nsec: nanoseconds to set* Set seconds and nanoseconds field of a timespec variable and* normalize to the timespec
864  如果此条件成立可能性小(为编译器优化)( seconds < seconds || seconds < seconds )则
865  seconds 等于Located here for timespec[64]_valid_strict
866  nanoseconds 等于0
869  返回:res
调用者
名称描述
ep_set_mstimeout
poll_select_set_timeoutpoll_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