Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\timekeeping.c Create Date:2022-07-28 10:43:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:do_adjtimex() - Accessor function to NTP __do_adjtimex function

Proto:int do_adjtimex(struct __kernel_timex *txc)

Type:int

Parameter:

TypeParameterName
struct __kernel_timex *txc
2315  tk = timekeeper
2323  ret = mekeeping_validate_timex - Ensures the timex is ok for use in do_adjtimex
2324  If ret Then Return ret
2327  If mode selector & add 'time' to current time Then
2329  seconds = tv_sec
2330  nanoseconds = tv_usec
2331  If Not ( mode selector & select nanosecond resolution ) Then 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  If ret Then Return 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  If tai != orig_tai Then
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  If mode selector & (quency offset | ick value ) Then mekeeping_advance - Updates the timekeeper to the current time and* current NTP tick length
2365  If tai != orig_tai Then Clock 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  Return ret
Caller
NameDescribe
posix_clock_realtime_adj