函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mekeeping_forward_now - update clock to the current time* Forward the current clock to update its state since the last call to* update_wall_time(). This is useful before significant clock changes,

函数原型:static void timekeeping_forward_now(struct timekeeper *tk)

返回类型:void

参数:

类型参数名称
struct timekeeper *tk
701  cycle_now等于k_clock_read - atomic clocksource read() helper* This helper is necessary to use in the read paths because, while the* seqlock ensures we don't return a bad value while structures are updated,* it doesn't protect from potential crashes
702  delta等于clocksource_delta(cycle_now, cycle_last, mask)
703  cycle_last等于cycle_now
704  cycle_last等于cycle_now
706  xtime_nsec加等于deltamult
709  xtime_nsec加等于arch_gettimeoffset()左移shift
712  xtime_nsec加等于deltamult
715  xtime_nsec加等于arch_gettimeoffset()左移shift
717  tk_normalize_xtime(tk)
调用者
名称描述
do_settimeofday64do_settimeofday64 - Sets the time of day.*@ts: pointer to the timespec64 variable containing the new time* Sets the time of day to the new time and update NTP and notify hrtimers
timekeeping_inject_offsetmekeeping_inject_offset - Adds or subtracts from the current time.*@tv: pointer to the timespec variable containing the offset* Adds or subtracts an offset value from the current time.
change_clocksourcehange_clocksource - Swaps clocksources if a new one is available* Accumulates current time interval and initializes new clocksource
timekeeping_suspend