Documentation
¶
Index ¶
Constants ¶
View Source
const IPCCREAT = 00001000
IPCCREAT create if key is nonexistent https://man7.org/linux/man-pages/man0/sys_ipc.h.0p.html
View Source
const NTPSHMSize = 96
NTPSHMSize is a size of NTPSHM struct
View Source
const SHMKEY = 0x4e545030
SHMKEY is a key of the first NTPD SHM segment http://doc.ntp.org/current-stable/drivers/driver28.html
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NTPSHM ¶
type NTPSHM struct { Mode int32 Count int32 ClockTimeStampSec int64 ClockTimeStampUSec int32 ReceiveTimeStampSec int64 ReceiveTimeStampUSec int32 Leap int32 Precision int32 Nsamples int32 Valid int32 ClockTimeStampNSec int32 ReceiveTimeStampNSec int32 Dummy [8]int32 }
NTPSHM Declaration of the SHM segment from ntp (ntpd/refclock_shm.c)
func (*NTPSHM) ClockTimeStamp ¶
ClockTimeStamp returns the clock time
func (*NTPSHM) ReceiveTimeStamp ¶
ReceiveTimeStamp returns the receive time
Click to show internal directories.
Click to hide internal directories.