函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:int do_settimeofday64(const struct timespec64 *ts)

返回类型:int

参数:

类型参数名称
const struct timespec64 *ts
1226  tk等于timekeeper
1229  ret等于0
1231  如果非timespec64_valid_settod(ts)则返回:负EINVAL
1234  raw_spin_lock_irqsave( & timekeeper_lock, flags)
1235  write_seqcount_begin( & seq)
1237  mekeeping_forward_now - update clock to the current time* Forward the current clock to update its state since the last call to* update_wall_time(). This is useful before significant clock changes,
1239  xt等于tk_xtime(tk)
1240  seconds 等于 seconds seconds
1241  nanoseconds 等于 nanoseconds nanoseconds
1243  如果lhs < rhs: return <0* lhs == rhs: return 0* lhs > rhs: return >0大于0则
1244  ret等于负EINVAL
1245  转到:out
1248  tk_set_wall_to_mono(tk, sub = lhs - rhs, in normalized form)
1250  tk_set_xtime(tk, ts)
1251  out :
1252  must hold timekeeper_lock
1254  write_seqcount_end( & seq)
1255  raw_spin_unlock_irqrestore( & timekeeper_lock, flags)
1258  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
1260  如果非retaudit_tk_injoffset(ts_delta)
1263  返回:ret
调用者
名称描述
do_sys_settimeofday64In case for some reason the CMOS clock has not already been running* in UTC, but in some local time: The first time we set the timezone,* we will warp the clock so that it is ticking UTC time instead of* local time