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

Function IoctlPtpPinGetfunc

phc/unix/linux.go:110–114  ·  view source on GitHub ↗

IoctlPtpPinGetfunc returns the configuration of the specified I/O pin on given PTP device.

(fd int, index uint)

Source from the content-addressed store, hash-verified

108
109// IoctlPtpPinGetfunc returns the configuration of the specified I/O pin on given PTP device.
110func IoctlPtpPinGetfunc(fd int, index uint) (*PtpPinDesc, error) {
111 value := PtpPinDesc{Index: uint32(index)}
112 err := ioctlPtr(fd, PTP_PIN_GETFUNC2, unsafe.Pointer(&value))
113 return &value, err
114}
115
116// IoctlPtpPinSetfunc updates configuration of the specified PTP I/O pin.
117func IoctlPtpPinSetfunc(fd int, pd *PtpPinDesc) 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…