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

Method readCaps

phc/device.go:115–117  ·  view source on GitHub ↗

readCaps reads PTP capabilities using ioctl

()

Source from the content-addressed store, hash-verified

113
114// readCaps reads PTP capabilities using ioctl
115func (dev *Device) readCaps() (*PtpClockCaps, error) {
116 return unix.IoctlPtpClockGetcaps(int(dev.Fd()))
117}
118
119// setPinFunc sets the function on a single PTP pin descriptor
120func (dev *Device) setPinFunc(index uint, pf int, ch uint) error {

Callers 1

MaxFreqAdjPPBMethod · 0.95

Calls 2

FdMethod · 0.95
IoctlPtpClockGetcapsFunction · 0.92

Tested by

no test coverage detected