函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Update (tick_length, tick_length_base, tick_nsec), based* on (tick_usec, ntp_tick_adj, time_freq):

函数原型:static void ntp_update_frequency(void)

返回类型:void

参数:

264  second_length等于USER_HZ period (usecs): NSEC_PER_USECUSER_HZ左移NTP_SCALE_SHIFT
267  second_length加等于constant (boot-param configurable) NTP tick adjustment (upscaled)
268  second_length加等于quency offset (scaled nsecs/secs):
270  SHIFTED_HZ period (nsecs): 等于div_u64 - unsigned 64bit divide with 32bit divisor*@dividend: unsigned 64bit dividend*@divisor: unsigned 32bit divisor* This is the most common 64bit divide and should be used if possible,* as many 32bit archs can optimize this variant better than a full 右移NTP_SCALE_SHIFT
271  new_base等于div_u64 - unsigned 64bit divide with 32bit divisor*@dividend: unsigned 64bit dividend*@divisor: unsigned 32bit divisor* This is the most common 64bit divide and should be used if possible,* as many 32bit archs can optimize this variant better than a full
277  tick_length加等于new_basetick_length_base
278  tick_length_base等于new_base
调用者
名称描述
ntp_clearp_clear - Clears the NTP state variables
process_adjtimex_modes
__do_adjtimexadjtimex mainly allows reading (and writing, if superuser) of* kernel time-keeping variables. used by xntpd.