ioctl

package
v1.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL