module IOCTL

Extended Modules

Defined in:

ioctl.cr

Constant Summary

DIRBITS = 2
DIRMASK = ((1 << DIRBITS) - 1)
DIRSHIFT = (SIZESHIFT + SIZEBITS)
NRBITS = 8
NRMASK = ((1 << NRBITS) - 1)
NRSHIFT = 0
SIZEBITS = 14
SIZEMASK = ((1 << SIZEBITS) - 1)
SIZESHIFT = (TYPESHIFT + TYPEBITS)
TYPEBITS = 8
TYPEMASK = ((1 << TYPEBITS) - 1)
TYPESHIFT = (NRSHIFT + NRBITS)

Instance Method Summary

Instance Method Detail

def _DIR(nr) #

[View source]
def _IO(*args) #

[View source]
def _IOC(dir : Dir, type : Int | Char, nr : Int, size : Int) : UInt32 #

[View source]
def _IOR(*args) #

[View source]
def _IOW(*args) #

[View source]
def _IOWR(*args) #

[View source]
def _NR(nr) #

[View source]
def _SIZE(nr) #

[View source]
def _TYPE(nr) #

[View source]
def ioctl(fd, request, *args) #

[View source]