函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:tk_set_wall_to_mono

函数原型:static void tk_set_wall_to_mono(struct timekeeper *tk, struct timespec64 wtm)

返回类型:void

参数:

类型参数名称
struct timekeeper *tk
struct timespec64wtm
137  set_normalized_timespec - set timespec sec and nsec parts and normalize*@ts: pointer to timespec variable to be set*@sec: seconds to set*@nsec: nanoseconds to set* Set seconds and nanoseconds field of a timespec variable and* normalize to the timespec
139  WARN_ON_ONCE(offs_real != vert a timespec64 to ktime_t format: )
140  wall_to_monotonic等于wtm
141  set_normalized_timespec - set timespec sec and nsec parts and normalize*@ts: pointer to timespec variable to be set*@sec: seconds to set*@nsec: nanoseconds to set* Set seconds and nanoseconds field of a timespec variable and* normalize to the timespec
142  offs_real等于vert a timespec64 to ktime_t format:
143  offs_tai等于计算下一次触发时间(offs_real, ktime_set - Set a ktime_t variable from a seconds/nanoseconds value*@secs: seconds to set*@nsecs: nanoseconds to set* Return: The ktime_t representation of the value.)
调用者
名称描述
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.
timekeeping_init初始化系统时钟计时
__timekeeping_inject_sleeptime__timekeeping_inject_sleeptime - Internal function to add sleep interval*@delta: pointer to a timespec delta value* Takes a timespec offset measuring a suspend interval and properly* adds the sleep offset to the timekeeping variables.
accumulate_nsecs_to_secsaccumulate_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.