MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vrtc_get_time

Function vrtc_get_time

freebsd/amd64/vmm/io/vrtc.c:773–786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

771}
772
773time_t
774vrtc_get_time(struct vm *vm)
775{
776 struct vrtc *vrtc;
777 sbintime_t basetime;
778 time_t t;
779
780 vrtc = vm_rtc(vm);
781 VRTC_LOCK(vrtc);
782 t = vrtc_curtime(vrtc, &basetime);
783 VRTC_UNLOCK(vrtc);
784
785 return (t);
786}
787
788int
789vrtc_nvram_write(struct vm *vm, int offset, uint8_t value)

Callers 1

vmmdev_ioctlFunction · 0.85

Calls 2

vm_rtcFunction · 0.85
vrtc_curtimeFunction · 0.85

Tested by

no test coverage detected