Version: v2.0.0+incompatible Latest Latest

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

Go to latest
Published: Jan 6, 2021 License: BSD-3-Clause, MIT Imports: 1 Imported by: 0


gioctl GoDoc

Simple library which provides golang versions of the ioctl macros in linux.



This code is Copyright (c) 2014 Mark Wolfe and licenced under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included file for more details.




This section is empty.


This section is empty.


func Io

func Io(t, nr uintptr) uintptr

Io used for a simple ioctl that sends nothing but the type and number, and receives back nothing but an (integer) retval.

func IoR

func IoR(t, nr, size uintptr) uintptr

IoR used for an ioctl that reads data from the device driver. The driver will be allowed to return sizeof(data_type) bytes to the user.

func IoRW

func IoRW(t, nr, size uintptr) uintptr

IoRW a combination of IoR and IoW. That is, data is both written to the driver and then read back from the driver by the client.

func IoW

func IoW(t, nr, size uintptr) uintptr

IoW used for an ioctl that writes data to the device driver.

func Ioctl

func Ioctl(fd, op, arg uintptr) error

Ioctl simplified ioct call


This section is empty.

Jump to

Keyboard shortcuts

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