函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sched_sync_hw_clock

函数原型:static void sched_sync_hw_clock(struct timespec64 now, unsigned long target_nsec, bool fail)

返回类型:void

参数:

类型参数名称
struct timespec64now
unsigned longtarget_nsec
boolfail
506  ktime_get_real_ts64 - Returns the time of day in a timespec64.*@ts: pointer to the timespec to be set* Returns the time of day in a timespec64 (WARN if suspended).
507  如果非fail seconds 等于659
509  否则
516  seconds 等于0
520  nanoseconds 等于target_nsec nanoseconds
521  如果 nanoseconds 小于等于0则 nanoseconds 加等于NSEC_PER_SEC
523  如果 nanoseconds 大于等于NSEC_PER_SEC
524  seconds 自加
525  nanoseconds 减等于NSEC_PER_SEC
528  启动延迟工作队列
调用者
名称描述
sync_rtc_clock
sync_cmos_clock