函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:s_to_timespec - Convert nanoseconds to timespec*@nsec: the nanoseconds value to be converted* Returns the timespec representation of the nsec parameter.

函数原型:struct timespec ns_to_timespec(const s64 nsec)

返回类型:struct timespec

参数:

类型参数名称
const s64nsec
463  如果非nsec则返回:(struct timespec){0, 0}
466  seconds 等于div_s64_rem - signed 64bit divide with 64bit divisor and remainder*@dividend: 64bit dividend*@divisor: 64bit divisor*@remainder: 64bit remainder
467  如果此条件成立可能性小(为编译器优化)(rem < 0)则
468  seconds 自减
469  rem加等于NSEC_PER_SEC
471  nanoseconds 等于rem
473  返回:ts
调用者
名称描述
ns_to_timevals_to_timeval - Convert nanoseconds to timeval*@nsec: the nanoseconds value to be converted* Returns the timeval representation of the nsec parameter.