函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Determine if we can call to driver to set the time

函数原型:static inline bool rtc_tv_nsec_ok(s64 set_offset_nsec, struct timespec64 *to_set, const struct timespec64 *now)

返回类型:bool

参数:

类型参数名称
s64set_offset_nsec
struct timespec64 *to_set set_delay_nsec == now +/- FUZZ
const struct timespec64 *now
237  TIME_SET_NSEC_FUZZ等于TICK_NSEC is the time between ticks in nsec assuming SHIFTED_HZ 乘5
238  struct timespec64 delay = { seconds = 0, nanoseconds = set_offset_nsec}
241  set_delay_nsec == now +/- FUZZ等于timespec64_add( * now, delay)
243  如果 nanoseconds 小于TIME_SET_NSEC_FUZZ
244  nanoseconds 等于0
245  返回:true
248  如果 nanoseconds 大于NSEC_PER_SECTIME_SET_NSEC_FUZZ
249  seconds 自加
250  nanoseconds 等于0
251  返回:true
253  返回:false
调用者
名称描述
sync_cmos_clock