Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:update_vsyscall

Proto:void update_vsyscall(struct timekeeper *tk)

Type:void

Parameter:

TypeParameterName
struct timekeeper *tk
72  vdata = __arch_get_k_vdso_data()
77  vdso_write_begin(vdata)
79  clock_mode = __arch_get_clock_mode(tk)
80  clock_mode = __arch_get_clock_mode(tk)
83  vdso_ts = basetime[The IDs of the various system clocks (for POSIX.1b interval timers):]
84  sec = xtime_sec
85  nsec = xtime_nsec
88  vdso_ts = basetime[CLOCK_REALTIME_COARSE]
89  sec = xtime_sec
90  nsec = xtime_nsec >> shift
93  vdso_ts = basetime[CLOCK_MONOTONIC_COARSE]
94  sec = xtime_sec + seconds
95  nsec = xtime_nsec >> shift
96  nsec = nsec + nanoseconds
97  sec += __iter_div_u64_rem(nsec, NSEC_PER_SEC, & nsec)
103  WRITE_ONCE(hrtimer_res, hrtimer_resolution)
109  If __arch_update_vdso_data() Then update_vdso_data(vdata, tk)
112  __arch_update_vsyscall(vdata, tk)
114  vdso_write_end(vdata)
116  __arch_sync_vdso_data(vdata)