函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pvclock_read_wallclock

函数原型:void pvclock_read_wallclock(struct pvclock_wall_clock *wall_clock, struct pvclock_vcpu_time_info *vcpu_time, struct timespec64 *ts)

返回类型:void

参数:

类型参数名称
struct pvclock_wall_clock *wall_clock
struct pvclock_vcpu_time_info *vcpu_time
struct timespec64 *ts
122  循环
123  version等于version
124  rmb()
132  seconds 等于sec
133  nanoseconds 等于nsec
134  rmb()
135 version按位与1或version不等于version循环
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 )
调用者
名称描述
kvm_get_wallclockThe wallclock is the time of day when we booted. Since then, some time may* have elapsed since the hypervisor wrote the data. So we try to account for* that with system time