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

Function IoctlPtpClockGetcaps

phc/unix/linux.go:84–88  ·  view source on GitHub ↗

IoctlPtpClockGetcaps returns the description of a given PTP device.

(fd int)

Source from the content-addressed store, hash-verified

82
83// IoctlPtpClockGetcaps returns the description of a given PTP device.
84func IoctlPtpClockGetcaps(fd int) (*PtpClockCaps, error) {
85 var value PtpClockCaps
86 err := ioctlPtr(fd, PTP_CLOCK_GETCAPS2, unsafe.Pointer(&value))
87 return &value, err
88}
89
90// IoctlPtpSysOffsetPrecise returns a description of the clock offset compared to the system clock.
91func IoctlPtpSysOffsetPrecise(fd int) (*PtpSysOffsetPrecise, 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…