package linux
import "github.com/Microsoft/hcsshim/internal/guest/linux"
Package linux contains definitions required for making a linux ioctl.
Index ¶
Constants ¶
const ( IocWrite = 1 IocRead = 2 IocNRBits = 8 IocTypeBits = 8 IocSizeBits = 14 IocDirBits = 2 IocNRMask = (1 << IocNRBits) - 1 IocTypeMask = (1 << IocTypeBits) - 1 IocSizeMask = (1 << IocSizeBits) - 1 IocDirMask = (1 << IocDirBits) - 1 IocTypeShift = IocNRBits IocSizeShift = IocTypeShift + IocTypeBits IocDirShift = IocSizeShift + IocSizeBits IocWRBase = (IocRead | IocWrite) << IocDirShift )
32 bits to describe an ioctl: 0-7: NR (command for a given ioctl type) 8-15: TYPE (ioctl type) 16-29: SIZE (payload size) 30-31: DIR (direction of ioctl, can be: none/write/read/write-read)
Functions ¶
func Ioctl ¶
Ioctl makes a syscall described by `command` with data `dataPtr` to device driver file `f`.
Source Files ¶
- Version
- v0.12.9 (latest)
- Published
- Oct 30, 2024
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 14 hours ago –
Tools for package owners.