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

Method readSysoffPrecise

phc/device.go:105–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103}
104
105func (dev *Device) readSysoffPrecise() (*PTPSysOffsetPrecise, error) {
106 value, err := unix.IoctlPtpSysOffsetPrecise(int(dev.Fd()))
107 if err != nil {
108 return nil, err
109 }
110 our := PTPSysOffsetPrecise(*value)
111 return &our, nil
112}
113
114// readCaps reads PTP capabilities using ioctl
115func (dev *Device) readCaps() (*PtpClockCaps, error) {

Callers 1

ReadSysoffPreciseMethod · 0.95

Calls 3

FdMethod · 0.95
IoctlPtpSysOffsetPreciseFunction · 0.92
PTPSysOffsetPreciseTypeAlias · 0.85

Tested by

no test coverage detected