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

Function IoctlPtpSysOffsetExtendedClock

phc/unix/linux.go:103–107  ·  view source on GitHub ↗

IoctlPtpSysOffsetExtendedClock returns an extended description of the clock offset.

(fd int, clockid uint32, samples uint)

Source from the content-addressed store, hash-verified

101
102// IoctlPtpSysOffsetExtendedClock returns an extended description of the clock offset.
103func IoctlPtpSysOffsetExtendedClock(fd int, clockid uint32, samples uint) (*PtpSysOffsetExtended, error) {
104 value := PtpSysOffsetExtended{Samples: uint32(samples), ClockID: clockid, Rsv: [2]uint32{0, 0}}
105 err := ioctlPtr(fd, PTP_SYS_OFFSET_EXTENDED2, unsafe.Pointer(&value))
106 return &value, err
107}
108
109// IoctlPtpPinGetfunc returns the configuration of the specified I/O pin on given PTP device.
110func IoctlPtpPinGetfunc(fd int, index uint) (*PtpPinDesc, error) {

Callers 1

Calls 1

ioctlPtrFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…