Module rustix::io_uring

source ·
Available on crate feature io_uring only.
Expand description

Linux io_uring.

This API is very low-level. The main adaptations it makes from the raw Linux io_uring API are the use of appropriately-sized bitflags, enum, Result, OwnedFd, AsFd, RawFd, and *mut c_void in place of plain integers.

For a higher-level API built on top of this, see the rustix-uring crate.

§Safety

io_uring operates on raw pointers and raw file descriptors. Rustix does not attempt to provide a safe API for these, because the abstraction level is too low for this to be practical. Safety should be introduced in higher-level abstraction layers.

§References

Re-exports§

Structs§

Enums§

Constants§

Functions§

  • io_uring_enter(fd, to_submit, min_complete, flags, arg, size)—Initiate and/or complete asynchronous I/O.
  • io_uring_register(fd, opcode, arg, nr_args)—Register files or user buffers for asynchronous I/O.
  • IORING_REGISTER_FILES_SKIP
  • io_uring_setup(entries, params)—Setup a context for performing asynchronous I/O.

Type Aliases§

Unions§