Documentation ¶ Index ¶ func Call(fd, command, arg uintptr) error func Do(fd uintptr, command Command, ptr interface{}) error type Command func Encode(mode Mode, size uint16, cmd uintptr) Command func Pointer(mode Mode, ref interface{}, cmd uintptr) Command func (c Command) String() string type Mode Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Call ¶ func Call(fd, command, arg uintptr) error Call does a plain ioctl system call. func Do ¶ func Do(fd uintptr, command Command, ptr interface{}) error Do executes the ioctl call. Types ¶ type Command ¶ type Command uintptr Command to be sent over ioctl. func Encode ¶ func Encode(mode Mode, size uint16, cmd uintptr) Command Encode an ioctl command. func Pointer ¶ func Pointer(mode Mode, ref interface{}, cmd uintptr) Command Pointer to a value. func (Command) String ¶ func (c Command) String() string type Mode ¶ type Mode uint8 Mode is the IOCTL mode. const ( None Mode = iota Write Read ) Modes Source Files ¶ View all Source files ioctl.go Click to show internal directories. Click to hide internal directories.