Once the submission queue entry is initialized, I/O is submitted by placing the index of the submission queue entry into the tail of the submission
queue. After one or more indexes are added to the queue, and the queue tail is advanced, the enter system call can be invoked to initiate the I/O.
struct io_uring_sqe {
__u8 opcode;
__u8 flags;
__u16 ioprio;
__s32 fd;
union {
__u64 off;
__u64 addr2;
struct {
__u32 cmd_op;
__u32 __pad1;
};
};
union {
__u64 addr;
__u64 splice_off_in;
};
__u32 len;
union {
__kernel_rwf_t rw_flags;
__u32 fsync_flags;
__u16 poll_events;
__u32 poll32_events;
__u32 sync_range_flags;
__u32 msg_flags;
__u32 timeout_flags;
__u32 accept_flags;
__u32 cancel_flags;
__u32 open_flags;
__u32 statx_flags;
__u32 fadvise_advice;
__u32 splice_flags;
__u32 rename_flags;
__u32 unlink_flags;
__u32 hardlink_flags;
__u32 xattr_flags;
__u32 msg_ring_flags;
__u32 uring_cmd_flags;
};
__u64 user_data;
union {
__u16 buf_index;
__u16 buf_group;
};
__u16 personality;
union {
__s32 splice_fd_in;
__u32 file_index;
struct {
__u16 addr_len;
__u16 __pad3[1];
};
};
union {
struct {
__u64 addr3;
__u64 __pad2[1];
};
__u8 cmd[0];
};
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | IOURingSQE.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | __PAD1
The struct member offsets. |
| public static final int | __PAD2
The struct member offsets. |
| public static final int | __PAD3
The struct member offsets. |
| public static final int | ACCEPT_FLAGS
The struct member offsets. |
| public static final int | ADDR
The struct member offsets. |
| public static final int | ADDR2
The struct member offsets. |
| public static final int | ADDR3
The struct member offsets. |
| public static final int | ADDR_LEN
The struct member offsets. |
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | BUF_GROUP
The struct member offsets. |
| public static final int | BUF_INDEX
The struct member offsets. |
| public static final int | CANCEL_FLAGS
The struct member offsets. |
| public static final int | CMD
The struct member offsets. |
| public static final int | CMD_OP
The struct member offsets. |
| public static final int | FADVISE_ADVICE
The struct member offsets. |
| public static final int | FD
The struct member offsets. |
| public static final int | FILE_INDEX
The struct member offsets. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | FSYNC_FLAGS
The struct member offsets. |
| public static final int | HARDLINK_FLAGS
The struct member offsets. |
| public static final int | IOPRIO
The struct member offsets. |
| public static final int | LEN
The struct member offsets. |
| public static final int | MSG_FLAGS
The struct member offsets. |
| public static final int | MSG_RING_FLAGS
The struct member offsets. |
| public static final int | OFF
The struct member offsets. |
| public static final int | OPCODE
The struct member offsets. |
| public static final int | OPEN_FLAGS
The struct member offsets. |
| public static final int | PERSONALITY
The struct member offsets. |
| public static final int | POLL32_EVENTS
The struct member offsets. |
| public static final int | POLL_EVENTS
The struct member offsets. |
| public static final int | RENAME_FLAGS
The struct member offsets. |
| public static final int | RW_FLAGS
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | SPLICE_FD_IN
The struct member offsets. |
| public static final int | SPLICE_FLAGS
The struct member offsets. |
| public static final int | SPLICE_OFF_IN
The struct member offsets. |
| public static final int | STATX_FLAGS
The struct member offsets. |
| public static final int | SYNC_RANGE_FLAGS
The struct member offsets. |
| public static final int | TIMEOUT_FLAGS
The struct member offsets. |
| public static final int | UNLINK_FLAGS
The struct member offsets. |
| public static final int | URING_CMD_FLAGS
The struct member offsets. |
| public static final int | USER_DATA
The struct member offsets. |
| public static final int | XATTR_FLAGS
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | IOURingSQE(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public IOURingSQE | |
| public LongBuffer | |
| public long | |
| public IOURingSQE | |
| public IOURingSQE | |
| public ShortBuffer | |
| public short | |
| public IOURingSQE | |
| public IOURingSQE | |
| public int | |
| public IOURingSQE | |
| public long | |
| public IOURingSQE | |
| public long | |
| public IOURingSQE | |
| public long | |
| public IOURingSQE | |
| public short | |
| public IOURingSQE | |
| public short | |
| public IOURingSQE | |
| public short | buf_index()
an index into an array of fixed buffers, and is only valid if fixed buffers were registered |
| public IOURingSQE | |
| public static IOURingSQE | |
| public static IOURingSQE. | calloc(int
the buffer capacity capacity)Returns a new |
| public static IOURingSQE | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static IOURingSQE. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public int | |
| public IOURingSQE | |
| public ByteBuffer | cmd()
If the ring is initialized with |
| public byte | cmd(int index)
If the ring is initialized with |
| public IOURingSQE | |
| public IOURingSQE | |
| public int | |
| public IOURingSQE | |
| protected IOURingSQE | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static IOURingSQE | |
| public static IOURingSQE | |
| public static IOURingSQE. | create(int
the buffer capacity capacity)Returns a new |
| public static IOURingSQE. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static IOURingSQE | |
| public static IOURingSQE. | |
| public int | |
| public IOURingSQE | |
| public int | |
| public IOURingSQE | |
| public int | |
| public IOURingSQE | |
| public byte | |
| public IOURingSQE | |
| public int | fsync_flags()
may contain either 0, for a normal file integrity sync, or |
| public IOURingSQE | |
| public int | |
| public IOURingSQE | |
| public short | |
| public IOURingSQE | |
| public int | |
| public IOURingSQE | |
| public static IOURingSQE | |
| public static IOURingSQE. | malloc(int
the buffer capacity capacity)Returns a new |
| public static IOURingSQE | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static IOURingSQE. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public int | |
| public IOURingSQE | |
| public int | |
| public IOURingSQE | |
| public static int | |
| public static void | |
| public static LongBuffer | |
| public static long | |
| public static void | |
| public static void | |
| public static ShortBuffer | |
| public static short | |
| public static void | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static short | |
| public static void | |
| public static short | |
| public static void | |
| public static short | |
| public static void | |
| public static int | |
| public static void | |
| public static ByteBuffer | |
| public static byte | |
| public static void | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static byte | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static short | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static byte | |
| public static void | |
| public static int | |
| public static void | |
| public static short | |
| public static void | |
| public static int | |
| public static void | |
| public static short | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public long | |
| public IOURingSQE | |
| public byte | |
| public IOURingSQE | |
| public int | |
| public IOURingSQE | |
| public short | |
| public IOURingSQE | |
| public int | |
| public IOURingSQE | |
| public short | poll_events()
the bits that may be set in |
| public IOURingSQE | |
| public int | |
| public IOURingSQE | |
| public int | rw_flags()
specified for read and write operations, contains a bitwise OR of per-I/O flags, as described in the |
| public IOURingSQE | |
| public IOURingSQE | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public IOURingSQE | |
| public int | |
| public IOURingSQE | |
| public long | |
| public IOURingSQE | |
| public int | |
| public IOURingSQE | |
| public int | |
| public IOURingSQE | |
| public int | |
| public IOURingSQE | |
| public int | |
| public IOURingSQE | |
| public int | |
| public IOURingSQE | |
| public long | |
| public IOURingSQE | |
| public int | |
| public IOURingSQE |