IoctlPtpSysOffsetExtendedClock returns an extended description of the clock offset.
(fd int, clockid uint32, samples uint)
| 101 | |
| 102 | // IoctlPtpSysOffsetExtendedClock returns an extended description of the clock offset. |
| 103 | func 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. |
| 110 | func IoctlPtpPinGetfunc(fd int, index uint) (*PtpPinDesc, error) { |
no test coverage detected
searching dependent graphs…