函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_adjtimex() - Accessor function to NTP __do_adjtimex function

函数原型:int do_adjtimex(struct __kernel_timex *txc)

返回类型:int

参数:

类型参数名称
struct __kernel_timex *txc
2315  tk等于timekeeper
2323  ret等于mekeeping_validate_timex - Ensures the timex is ok for use in do_adjtimex
2324  如果ret则返回:ret
2327  如果 mode selector 按位与add 'time' to current time
2329  seconds 等于tv_sec
2330  nanoseconds 等于tv_usec
2331  如果非 mode selector 按位与select nanosecond resolution 的值则 nanoseconds 乘等于1000
2333  ret等于mekeeping_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.
2334  如果ret则返回:ret
2337  audit_tk_injoffset(delta)
2340  audit_ntp_init( & ad)
2342  ktime_get_real_ts64 - Returns the time of day in a timespec64.*@ts: pointer to the timespec to be set* Returns the time of day in a timespec64 (WARN if suspended).
2344  raw_spin_lock_irqsave( & timekeeper_lock, flags)
2345  write_seqcount_begin( & seq)
2347  orig_tai等于tai等于tai_offset
2348  ret等于__do_adjtimex(txc, & ts, & tai, & ad)
2350  如果tai不等于orig_tai
2351  __timekeeping_set_tai_offset - Sets the TAI offset from UTC and monotonic
2352  must hold timekeeper_lock
2354  k_update_leap_state - helper to update the next_leap_ktime
2356  write_seqcount_end( & seq)
2357  raw_spin_unlock_irqrestore( & timekeeper_lock, flags)
2359  audit_ntp_log( & ad)
2362  如果 mode selector 按位与quency offset 按位或ick value 的值则mekeeping_advance - Updates the timekeeper to the current time and* current NTP tick length
2365  如果tai不等于orig_taiClock realtime was set* Change the offset of the realtime clock vs. the monotonic* clock.* We might have to reprogram the high resolution timer interrupt. On* SMP we call the architecture specific code to retrigger _all_ high* resolution timer interrupts
2368  ntp_notify_cmos_timer()
2370  返回:ret
调用者
名称描述
posix_clock_realtime_adj