Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:update_vdso_data

Proto:static inline void update_vdso_data(struct vdso_data *vdata, struct timekeeper *tk)

Type:void

Parameter:

TypeParameterName
struct vdso_data *vdata
struct timekeeper *tk
22  cycle_last = cycle_last
23  mask = mask
24  mult = mult
25  shift = shift
26  cycle_last = cycle_last
27  mask = mask
28  mult = mult
29  shift = shift
32  vdso_ts = basetime[CLOCK_MONOTONIC]
33  sec = xtime_sec + seconds
35  nsec = xtime_nsec
36  nsec += nanoseconds << shift
37  When nsec >= NSEC_PER_SEC << shift cycle
38  nsec -= NSEC_PER_SEC << shift
39  sec++
41  nsec = nsec
44  sec = sec
46  sec += seconds
47  nsec += nanoseconds << shift
50  vdso_ts = basetime[CLOCK_BOOTTIME]
51  sec = sec
53  When nsec >= NSEC_PER_SEC << shift cycle
54  nsec -= NSEC_PER_SEC << shift
55  sec++
57  nsec = nsec
60  vdso_ts = basetime[CLOCK_MONOTONIC_RAW]
61  sec = raw_sec
62  nsec = xtime_nsec
65  vdso_ts = basetime[CLOCK_TAI]
66  sec = xtime_sec + tai_offset
67  nsec = xtime_nsec
Caller
NameDescribe
update_vsyscall