函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:logarithmic_accumulation - shifted accumulation of cycles* This functions accumulates a shifted interval of cycles into* into a shifted interval nanoseconds. Allows for O(log) accumulation* loop.* Returns the unconsumed cycles.

函数原型:static u64 logarithmic_accumulation(struct timekeeper *tk, u64 offset, unsigned int shift, unsigned int *clock_set)

返回类型:u64

参数:

类型参数名称
struct timekeeper *tk
u64offset
unsigned intshift
unsigned int *clock_set
2013  interval等于The following members are for timekeeping internal use 左移shift
2017  如果offset小于interval则返回:offset
2021  offset减等于interval
2022  cycle_last加等于interval
2023  cycle_last加等于interval
2025  xtime_nsec加等于xtime_interval左移shift
2026  clock_set或等于accumulate_nsecs_to_secs - Accumulates nsecs into secs* Helper function that accumulates the nsecs greater than a second* from the xtime_nsec field to the xtime_secs field.* It also calls into the NTP code to handle leapsecond processing.
2029  xtime_nsec加等于raw_interval左移shift
2030  snsec_per_sec等于NSEC_PER_SEC左移shift
2031 xtime_nsec大于等于snsec_per_sec循环
2032  xtime_nsec减等于snsec_per_sec
2033  raw_sec自加
2037  Difference between accumulated time and NTP time in ntp* shifted nano seconds. 加等于The ntp_tick_length() value currently being used.* This cached copy ensures we consistently apply the tick* length for an entire tick, as ntp_tick_length may change* mid-tick, and we don't want to apply that new value to* the tick in progress.左移shift
2038  Difference between accumulated time and NTP time in ntp* shifted nano seconds. 减等于xtime_intervalxtime_remainder左移ntp_error_shiftshift
2041  返回:offset
调用者
名称描述
timekeeping_advancemekeeping_advance - Updates the timekeeper to the current time and* current NTP tick length