Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\pvclock.c Create Date:2022-07-28 08:45:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pvclock_read_wallclock

Proto:void pvclock_read_wallclock(struct pvclock_wall_clock *wall_clock, struct pvclock_vcpu_time_info *vcpu_time, struct timespec64 *ts)

Type:void

Parameter:

TypeParameterName
struct pvclock_wall_clock *wall_clock
struct pvclock_vcpu_time_info *vcpu_time
struct timespec64 *ts
122  Do
123  version = version
124  rmb()
132  seconds = sec
133  nanoseconds = nsec
134  rmb()
135  When version & 1 || version != version cycle
137  delta = pvclock_clocksource_read(vcpu_time)
138  delta += seconds * NSEC_PER_SEC + nanoseconds
140  nanoseconds = do_div() is NOT a C function(delta, NSEC_PER_SEC)
141  seconds = delta
143  set_normalized_timespec64(ts, seconds , nanoseconds )