PatchworkOS  19e446b
A non-POSIX operating system.
Loading...
Searching...
No Matches
sqe_t Struct Reference

Asynchronous submission queue entry (SQE). More...

#include <ioring.h>

Collaboration diagram for sqe_t:

Data Fields

clock_t timeout
 Timeout for the operation, CLOCKS_NEVER for no timeout.
 
void * data
 Private data for the operation, will be returned in the completion entry.
 
io_op_t op
 The operation to perform.
 
sqe_flags_t flags
 Submission flags.
 
union { 
 
   uint64_t   arg0 
 
   fd_t   fd 
 
};  
 
union { 
 
   uint64_t   arg1 
 
   void *   buffer 
 
   io_events_t   events 
 
};  
 
union { 
 
   uint64_t   arg2 
 
   size_t   count 
 
};  
 
union { 
 
   uint64_t   arg3 
 
   ssize_t   offset 
 
};  
 
union { 
 
   uint64_t   arg4 
 
};  
 

Detailed Description

Asynchronous submission queue entry (SQE).

Warning
It is the responsibility of userspace to ensure that any pointers passed to the kernel remain valid until the operation is complete.
See also
I/O Subsystem for more information for each possible operation.

Definition at line 88 of file ioring.h.

Field Documentation

◆ timeout

clock_t sqe_t::timeout

Timeout for the operation, CLOCKS_NEVER for no timeout.

Definition at line 90 of file ioring.h.

◆ data

void* sqe_t::data

Private data for the operation, will be returned in the completion entry.

Definition at line 91 of file ioring.h.

◆ op

io_op_t sqe_t::op

The operation to perform.

Definition at line 92 of file ioring.h.

◆ flags

sqe_flags_t sqe_t::flags

Submission flags.

Definition at line 93 of file ioring.h.

◆ arg0

uint64_t sqe_t::arg0

Definition at line 95 of file ioring.h.

◆ fd

fd_t sqe_t::fd

Definition at line 96 of file ioring.h.

◆ [union]

union { ... } sqe_t

◆ arg1

uint64_t sqe_t::arg1

Definition at line 99 of file ioring.h.

◆ buffer

void* sqe_t::buffer

Definition at line 100 of file ioring.h.

◆ events

io_events_t sqe_t::events

Definition at line 101 of file ioring.h.

◆ [union]

union { ... } sqe_t

◆ arg2

uint64_t sqe_t::arg2

Definition at line 104 of file ioring.h.

◆ count

size_t sqe_t::count

Definition at line 105 of file ioring.h.

◆ [union]

union { ... } sqe_t

◆ arg3

uint64_t sqe_t::arg3

Definition at line 108 of file ioring.h.

◆ offset

ssize_t sqe_t::offset

Definition at line 109 of file ioring.h.

◆ [union]

union { ... } sqe_t

◆ arg4

uint64_t sqe_t::arg4

Definition at line 112 of file ioring.h.

◆ [union]

union { ... } sqe_t

The documentation for this struct was generated from the following file: