函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:must hold timekeeper_lock

函数原型:static void timekeeping_update(struct timekeeper *tk, unsigned int action)

返回类型:void

参数:

类型参数名称
struct timekeeper *tk
unsigned intaction
663  如果action按位与TK_CLEAR_NTP
664  Difference between accumulated time and NTP time in ntp* shifted nano seconds. 等于0
665  ntp_clear()
668  k_update_leap_state - helper to update the next_leap_ktime
669  Update the ktime_t based scalar nsec members of the timekeeper
671  update_vsyscall(tk)
672  update_pvclock_gtod(tk, action & TK_CLOCK_WAS_SET)
674  base_real等于baseoffs_real
675  pdate_fast_timekeeper - Update the fast and NMI safe monotonic timekeeper.*@tkr: Timekeeping readout base from which we take the update* We want to use this from any context including NMI and tracing /* instrumenting the timekeeping code itself.
676  pdate_fast_timekeeper - Update the fast and NMI safe monotonic timekeeper.*@tkr: Timekeeping readout base from which we take the update* We want to use this from any context including NMI and tracing /* instrumenting the timekeeping code itself.
678  如果action按位与TK_CLOCK_WAS_SETclock_was_set_seq自加
685  如果action按位与TK_MIRROR内存复制( & shadow_timekeeper, & timekeeper, timekeeper的长度)
调用者
名称描述
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_init初始化系统时钟计时
timekeeping_resumemekeeping_resume - Resumes the generic timekeeping subsystem.
timekeeping_suspend
timekeeping_advancemekeeping_advance - Updates the timekeeper to the current time and* current NTP tick length
do_adjtimexdo_adjtimex() - Accessor function to NTP __do_adjtimex function