MCPcopy Create free account
hub / github.com/facebook/time / IoctlPtpSysOffsetPrecise

Function IoctlPtpSysOffsetPrecise

phc/unix/linux.go:91–95  ·  view source on GitHub ↗

IoctlPtpSysOffsetPrecise returns a description of the clock offset compared to the system clock.

(fd int)

Source from the content-addressed store, hash-verified

89
90// IoctlPtpSysOffsetPrecise returns a description of the clock offset compared to the system clock.
91func IoctlPtpSysOffsetPrecise(fd int) (*PtpSysOffsetPrecise, error) {
92 var value PtpSysOffsetPrecise
93 err := ioctlPtr(fd, PTP_SYS_OFFSET_PRECISE2, unsafe.Pointer(&value))
94 return &value, err
95}
96
97// IoctlPtpSysOffsetExtended returns an extended description of the clock offset.
98func IoctlPtpSysOffsetExtended(fd int, samples uint) (*PtpSysOffsetExtended, error) {

Callers

nothing calls this directly

Calls 1

ioctlPtrFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…