haskus-system-0.7.0.0: Haskus system programming framework

Safe HaskellNone
LanguageHaskell2010

Haskus.System.Linux.Internals.Ioctl

Description

IOCTL

Synopsis

Documentation

newtype Command Source #

An IOCTL command number

The fields are just conventional. Some IOCTLs don't respect them (e.g., use direction=None while they read and/or write, use non corresponding arg size, etc.)

Constructors

Command (BitFields Word32 '[BitField 2 "direction" (EnumField Word8 Direction), BitField 14 "size" Word16, BitField 8 "type" CommandType, BitField 8 "number" CommandNumber]) 

type CommandType = Word8 Source #

Command type

type CommandNumber = Word8 Source #

Command number

ioctlCommand :: Direction -> Word8 -> Word8 -> Word -> Command Source #

Encode a command (similar to _IO, _IOR, ... macros)