函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\ktime.h Create Date:2022-07-27 06:39:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ktime_set - Set a ktime_t variable from a seconds/nanoseconds value*@secs: seconds to set*@nsecs: nanoseconds to set* Return: The ktime_t representation of the value.

函数原型:static inline ktime_t ktime_set(const s64 secs, const unsigned long nsecs)

返回类型:ktime_t

参数:

类型参数名称
const s64secs
const unsigned longnsecs
39  如果此条件成立可能性小(为编译器优化)(secs >= KTIME_SEC_MAX)则返回:KTIME_MAX
42  返回:secsNSEC_PER_SECnsecs
调用者
名称描述
ktime_add_safeAdd two ktime values and do a safety check for overflow:
tk_set_wall_to_mono
__timekeeping_set_tai_offset__timekeeping_set_tai_offset - Sets the TAI offset from UTC and monotonic
ktime_get_update_offsets_nowktime_get_update_offsets_now - hrtimer helper*@cwsseq: pointer to check and store the clock was set sequence number*@offs_real: pointer to storage for monotonic -> realtime offset*@offs_boot: pointer to storage for monotonic -> boottime offset*@offs_tai:
ntp_get_next_leapp_get_next_leap - Returns the next leapsecond in CLOCK_REALTIME ktime_t* Provides the time of the next leapsecond against CLOCK_REALTIME in* a ktime_t format. Returns KTIME_MAX if no leapsecond is pending.
torture_shutdown_initStart up the shutdown task.
timespec_to_ktimevert a timespec to ktime_t format:
timespec64_to_ktimevert a timespec64 to ktime_t format:
timeval_to_ktimevert a timeval to ktime_t format: