Copyright Christoph Hellwig 2019. License : Boost License 1.0 Authors : Luís Ferreira
core.sys.linux.io_uring
D header file for the io_uring interface. Available since Linux 5.1
Copyright
Copyright Jens Axboe 2019,
Types 10
structio_uring_sqe
IO submission data structure (Submission Queue Entry)
Fields
ubyte opcodetype of operation for this sqeubyte flagsIOSQE_* flagsushort ioprioioprio for the requestint fdfile descriptor to do IO onuint lenbuffer size or number of iovecsulong user_datadata to be passed back at completion timestructio_uring_cqe
IO completion data structure (Completion Queue Entry)
Fields
ulong user_datasubmission passed backint resresult code for this eventuint flagsstructio_sqring_offsets
Filled with the offset for mmap(2)
Fields
uint headuint tailuint ring_maskuint ring_entriesuint flagsuint droppeduint arrayuint resv1ulong resv2structio_cqring_offsets
Fields
uint headuint tailuint ring_maskuint ring_entriesuint overflowuint cqesuint flagsuint resv1ulong resv2structio_uring_params
Passed in for io_uring_setup(2)
Fields
uint sq_entriesuint cq_entriesuint flagsuint sq_thread_cpuuint sq_thread_idleuint featuresuint wq_fduint[3] resvio_sqring_offsets sq_offio_cqring_offsets cq_offstructio_uring_files_update
io_uring_register(2) opcodes and arguments
Fields
uint offsetuint resvulong fdsstructio_uring_probe_op
Fields
ubyte opubyte resvushort flagsIOURINGOP_* flagsuint resv2structio_uring_probe
Fields
ubyte last_oplast opcode supportedubyte ops_lenlength of ops[] array belowushort resvuint[3] resv2io_uring_probe_op[0] opsstructio_uring_restriction
Fields
ushort opcodeubyte resvuint[3] resv2structio_uring_getevents_arg
Fields
ulong sigmaskuint sigmask_szuint padulong tsVariables 3
enumvar
SPLICE_F_FD_IN_FIXED = 1U << 31io_uring_setup() flags
enumvar
IORING_CQE_F_BUFFER = 1U << 0If set, the upper 16 bits are the buffer ID
enumvar
IO_URING_OP_SUPPORTED = 1U << 0