Package org.lwjgl.system.linux.liburing
Class IOURing
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<IOURing>
org.lwjgl.system.linux.liburing.IOURing
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IOURing
extends org.lwjgl.system.Struct<IOURing>
implements org.lwjgl.system.NativeResource
Layout
struct io_uring {
struct io_uring_sq
sq;
struct io_uring_cq
cq;
unsigned int flags;
int ring_fd;
unsigned int features;
int enter_ring_fd;
__u8 int_flags;
__u8 pad[3];
unsigned pad2;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionIOURing
(ByteBuffer container) Creates aIOURing
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURing
calloc()
Returns a newIOURing
instance allocated withmemCalloc
.static IOURing.Buffer
calloc
(int capacity) Returns a newIOURing.Buffer
instance allocated withmemCalloc
.static IOURing.Buffer
calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURing.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURing
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURing
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.cq()
Passes thecq
field to the specifiedConsumer
.Copies the specifiedIOURingCQ
to thecq
field.static IOURing
create()
Returns a newIOURing
instance allocated withBufferUtils
.static IOURing.Buffer
create
(int capacity) Returns a newIOURing.Buffer
instance allocated withBufferUtils
.static IOURing
create
(long address) Returns a newIOURing
instance for the specified memory address.static IOURing.Buffer
create
(long address, int capacity) Create aIOURing.Buffer
instance at the specified memory.static IOURing
createSafe
(long address) static IOURing.Buffer
createSafe
(long address, int capacity) int
enter_ring_fd
(int value) Sets the specified value to theenter_ring_fd
field.int
features()
features
(int value) Sets the specified value to thefeatures
field.int
flags()
flags
(int value) Sets the specified value to theflags
field.byte
int_flags
(byte value) Sets the specified value to theint_flags
field.static IOURing
malloc()
Returns a newIOURing
instance allocated withmemAlloc
.static IOURing.Buffer
malloc
(int capacity) Returns a newIOURing.Buffer
instance allocated withmemAlloc
.static IOURing.Buffer
malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURing.Buffer
instance allocated on the specifiedMemoryStack
.static IOURing
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURing
instance allocated on the specifiedMemoryStack
.static IOURingCQ
ncq
(long struct) Unsafe version ofcq()
.static void
Unsafe version ofcq
.static int
nenter_ring_fd
(long struct) Unsafe version ofenter_ring_fd()
.static void
nenter_ring_fd
(long struct, int value) Unsafe version ofenter_ring_fd
.static int
nfeatures
(long struct) Unsafe version offeatures()
.static void
nfeatures
(long struct, int value) Unsafe version offeatures
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static byte
nint_flags
(long struct) Unsafe version ofint_flags()
.static void
nint_flags
(long struct, byte value) Unsafe version ofint_flags
.static ByteBuffer
npad
(long struct) static byte
npad
(long struct, int index) static void
npad
(long struct, int index, byte value) static void
npad
(long struct, ByteBuffer value) static int
npad2
(long struct) static void
npad2
(long struct, int value) static int
nring_fd
(long struct) Unsafe version ofring_fd()
.static void
nring_fd
(long struct, int value) Unsafe version ofring_fd
.static IOURingSQ
nsq
(long struct) Unsafe version ofsq()
.static void
Unsafe version ofsq
.int
ring_fd()
ring_fd
(int value) Sets the specified value to thering_fd
field.Copies the specified struct data to this struct.set
(IOURingSQ sq, IOURingCQ cq, int flags, int ring_fd, int features, int enter_ring_fd, byte int_flags) Initializes this struct with the specified values.int
sizeof()
sq()
Passes thesq
field to the specifiedConsumer
.Copies the specifiedIOURingSQ
to thesq
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
SQ
public static final int SQThe struct member offsets. -
CQ
public static final int CQThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
RING_FD
public static final int RING_FDThe struct member offsets. -
FEATURES
public static final int FEATURESThe struct member offsets. -
ENTER_RING_FD
public static final int ENTER_RING_FDThe struct member offsets. -
INT_FLAGS
public static final int INT_FLAGSThe struct member offsets. -
PAD
public static final int PADThe struct member offsets. -
PAD2
public static final int PAD2The struct member offsets.
-
-
Constructor Details
-
IOURing
Creates aIOURing
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()- Specified by:
sizeof
in classorg.lwjgl.system.Struct<IOURing>
-
sq
- Returns:
- a
IOURingSQ
view of thesq
field.
-
cq
- Returns:
- a
IOURingCQ
view of thecq
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
ring_fd
public int ring_fd()- Returns:
- the value of the
ring_fd
field.
-
features
public int features()- Returns:
- the value of the
features
field.
-
enter_ring_fd
public int enter_ring_fd()- Returns:
- the value of the
enter_ring_fd
field.
-
int_flags
public byte int_flags()- Returns:
- the value of the
int_flags
field.
-
sq
Copies the specifiedIOURingSQ
to thesq
field. -
sq
Passes thesq
field to the specifiedConsumer
. -
cq
Copies the specifiedIOURingCQ
to thecq
field. -
cq
Passes thecq
field to the specifiedConsumer
. -
flags
Sets the specified value to theflags
field. -
ring_fd
Sets the specified value to thering_fd
field. -
features
Sets the specified value to thefeatures
field. -
enter_ring_fd
Sets the specified value to theenter_ring_fd
field. -
int_flags
Sets the specified value to theint_flags
field. -
set
public IOURing set(IOURingSQ sq, IOURingCQ cq, int flags, int ring_fd, int features, int enter_ring_fd, byte int_flags) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newIOURing
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOURing
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOURing
instance allocated withBufferUtils
. -
create
Returns a newIOURing
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURing.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOURing.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOURing.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOURing.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURing
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOURing
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOURing.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOURing.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nsq
Unsafe version ofsq()
. -
ncq
Unsafe version ofcq()
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
nring_fd
public static int nring_fd(long struct) Unsafe version ofring_fd()
. -
nfeatures
public static int nfeatures(long struct) Unsafe version offeatures()
. -
nenter_ring_fd
public static int nenter_ring_fd(long struct) Unsafe version ofenter_ring_fd()
. -
nint_flags
public static byte nint_flags(long struct) Unsafe version ofint_flags()
. -
npad
-
npad
public static byte npad(long struct, int index) -
npad2
public static int npad2(long struct) -
nsq
Unsafe version ofsq
. -
ncq
Unsafe version ofcq
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
. -
nring_fd
public static void nring_fd(long struct, int value) Unsafe version ofring_fd
. -
nfeatures
public static void nfeatures(long struct, int value) Unsafe version offeatures
. -
nenter_ring_fd
public static void nenter_ring_fd(long struct, int value) Unsafe version ofenter_ring_fd
. -
nint_flags
public static void nint_flags(long struct, byte value) Unsafe version ofint_flags
. -
npad
-
npad
public static void npad(long struct, int index, byte value) -
npad2
public static void npad2(long struct, int value) -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-