函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static inline unsigned int accumulate_nsecs_to_secs(struct timekeeper *tk)

返回类型:unsigned int

参数:

类型参数名称
struct timekeeper *tk
1963  nsecps等于NSEC_PER_SEC左移shift
1964  clock_set等于0
1966 xtime_nsec大于等于nsecps循环
1969  xtime_nsec减等于nsecps
1970  xtime_sec自加
1978  继续下一循环
1982  leap等于his routine handles the overflow of the microsecond field* The tricky bits of code to handle the accurate clock support* were provided by Dave Mills (Mills@UDEL.EDU) of NTP fame.* They were originally developed for SUN and DEC kernels.
1986  xtime_sec加等于leap
1988  seconds 等于leap
1989  nanoseconds 等于0
1998  返回:clock_set
调用者
名称描述
logarithmic_accumulationlogarithmic_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.
timekeeping_advancemekeeping_advance - Updates the timekeeper to the current time and* current NTP tick length