Skip to main content

Module sys

Module sys 

Source
Expand description

Low-level Linux io_uring bindings.

Structs§

__kernel_timespec
Kernel timespec structure.
io_cqring_offsets
Offsets for the completion queue ring members.
io_sqring_offsets
Offsets for the submission queue ring members.
io_uring_cqe
A Completion Queue Entry.
io_uring_params
Parameters for io_uring_setup.
io_uring_sqe
A Submission Queue Entry.

Constants§

IORING_ACCEPT_MULTISHOT
Accept flag: enable multishot mode.
IORING_ENTER_GETEVENTS
Enter flag: wait for events.
IORING_OFF_CQ_RING
Offset for mapping the completion queue ring.
IORING_OFF_SQES
Offset for mapping the submission queue entries.
IORING_OFF_SQ_RING
Offset for mapping the submission queue ring.
IORING_OP_ACCEPT
Opcode: accept a new connection.
IORING_OP_ASYNC_CANCEL
Opcode: cancel an asynchronous operation.
IORING_OP_CLOSE
Opcode: close a file descriptor.
IORING_OP_CONNECT
Opcode: connect to a remote address.
IORING_OP_OPENAT
Opcode: open a file relative to a directory.
IORING_OP_READ
Opcode: standard read.
IORING_OP_READV
Opcode: vectored read.
IORING_OP_READ_FIXED
Opcode: read from a fixed buffer.
IORING_OP_SPLICE
Opcode: splice two file descriptors.
IORING_OP_TIMEOUT
Opcode: register a timeout.
IORING_OP_WRITE
Opcode: standard write.
IORING_OP_WRITEV
Opcode: vectored write.
IORING_OP_WRITE_FIXED
Opcode: write to a fixed buffer.
IORING_REGISTER_BUFFERS
Register opcode: register a set of buffers.
IORING_SETUP_CQSIZE
Setup flag: specify a custom CQ size.
IORING_SETUP_SQPOLL
Setup flag: use a kernel thread to poll for SQEs.
IORING_UNREGISTER_BUFFERS
Register opcode: unregister previously registered buffers.
IOSQE_ASYNC
SQE flag: start operation asynchronously.
IOSQE_BUFFER_SELECT
SQE flag: use a buffer from the provided pool.
IOSQE_FIXED_FILE
SQE flag: use a fixed file descriptor.
IOSQE_IO_DRAIN
SQE flag: drain all previous requests before starting.
IOSQE_IO_HARDLINK
SQE flag: hard-link this operation with the next one.
IOSQE_IO_LINK
SQE flag: link this operation with the next one.
SYS_IO_URING_ENTER
Syscall number for io_uring_enter.
SYS_IO_URING_REGISTER
Syscall number for io_uring_register.
SYS_IO_URING_SETUP
Syscall number for io_uring_setup.

Functions§

io_uring_enter
Low-level wrapper for io_uring_enter syscall.
io_uring_setup
Low-level wrapper for io_uring_setup syscall.