ioc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package ioc generates the proper ioctl command numbers.

Based on C sources from Linux kernel: * https://github.com/torvalds/linux/blob/master/include/asm-generic/ioctl.h * https://github.com/torvalds/linux/blob/master/include/uapi/asm-generic/ioctl.h

Index

Constants

View Source
const (

	// NONE - No ioctl direction.
	NONE uint = 0

	// WRITE - Write ioctl direction.
	WRITE uint = 1

	// READ - Read ioctl direction.
	READ uint = 2
)

Variables

This section is empty.

Functions

func Command

func Command(dir, typ, nr, size uint) uint

Command generates an ioctl command from the supplied arguments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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