Module io_uring::opcode[][src]

Operation codes that can be used to construct squeue::Entrys.

Structs

Accept

Accept a new connection on a socket, equivalent to accept4(2).

AsyncCancel

Attempt to cancel an already issued request.

Close

Close a file descriptor, equivalent to close(2).

Connect

Connect a socket, equivalent to connect(2).

EpollCtl

Modify an epoll file descriptor, equivalent to epoll_ctl(2).

Fadvise

Predeclare an access pattern for file data, equivalent to posix_fadvise(2).

Fallocate

Preallocate or deallocate space to a file, equivalent to fallocate(2).

FilesUpdate

This command is an alternative to using Submitter::register_files_update which then works in an async fashion, like the rest of the io_uring commands.

Fsync

File sync, equivalent to fsync(2).

LinkTimeout

This request must be linked with another request through Flags::IO_LINK which is described below. Unlike Timeout, LinkTimeout acts on the linked request, not the completion queue.

Madvise

Give advice about use of memory, equivalent to madvise(2).

Nop

Do not perform any I/O.

OpenAt

Open a file, equivalent to openat(2).

OpenAt2

Open a file, equivalent to openat2(2).

PollAdd

Poll the specified fd.

PollRemove

Remove an existing poll request.

ProvideBuffers

Register nbufs buffers that each have the length len with ids starting from big in the group bgid that can be used for any request. See BUFFER_SELECT for more info.

Read

Read from a file descriptor, equivalent to read(2).

ReadFixed

Read from pre-mapped buffers that have been previously registered with Submitter::register_buffers.

Readv

Vectored read, equivalent to preadv2(2).

Recv

Receive a message from a socket, equivalent to recv(2).

RecvMsg

Receive a message on a socket, equivalent to recvmsg(2).

RemoveBuffers

Remove some number of buffers from a buffer group. See BUFFER_SELECT for more info.

RenameAt
Send

Send a message on a socket, equivalent to send(2).

SendMsg

Send a message on a socket, equivalent to send(2).

Shutdown
Splice

Splice data to/from a pipe, equivalent to splice(2).

Statx

Get file status, equivalent to statx(2).

SyncFileRange

Sync a file segment with disk, equivalent to sync_file_range(2).

Tee

Duplicate pipe content, equivalent to tee(2).

Timeout

Register a timeout operation.

TimeoutRemove

Attempt to remove an existing timeout operation.

UnlinkAt
Write

Write to a file descriptor, equivalent to write(2).

WriteFixed

Write to pre-mapped buffers that have been previously registered with Submitter::register_buffers.

Writev

Vectored write, equivalent to pwritev2(2).