Package org.lwjgl.system.linux.liburing
Class IOURingSQ
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<IOURingSQ>
org.lwjgl.system.linux.liburing.IOURingSQ
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IOURingSQ
extends org.lwjgl.system.Struct<IOURingSQ>
implements org.lwjgl.system.NativeResource
Layout
struct io_uring_sq {
unsigned * khead;
unsigned * ktail;
unsigned * kring_mask(int)
;
unsigned * kring_entries(int)
;
unsigned * kflags;
unsigned * kdropped;
unsigned * array;
struct io_uring_sqe
* sqes;
unsigned sqe_head;
unsigned sqe_tail;
size_t ring_sz;
void * ring_ptr;
unsigned ring_mask;
unsigned ring_entries;
unsigned pad[2];
}
-
Nested Class Summary
Nested 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
Modifier 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 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.static final int
The struct member offsets.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
ConstructorDescriptionIOURingSQ
(ByteBuffer container) Creates aIOURingSQ
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionarray
(int capacity) Sets the address of the specifiedIntBuffer
to thearray
field.static IOURingSQ
calloc()
Returns a newIOURingSQ
instance allocated withmemCalloc
.static IOURingSQ.Buffer
calloc
(int capacity) Returns a newIOURingSQ.Buffer
instance allocated withmemCalloc
.static IOURingSQ.Buffer
calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingSQ.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingSQ
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingSQ
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingSQ
create()
Returns a newIOURingSQ
instance allocated withBufferUtils
.static IOURingSQ.Buffer
create
(int capacity) Returns a newIOURingSQ.Buffer
instance allocated withBufferUtils
.static IOURingSQ
create
(long address) Returns a newIOURingSQ
instance for the specified memory address.static IOURingSQ.Buffer
create
(long address, int capacity) Create aIOURingSQ.Buffer
instance at the specified memory.static IOURingSQ
createSafe
(long address) static IOURingSQ.Buffer
createSafe
(long address, int capacity) kdropped
(int capacity) Sets the address of the specifiedIntBuffer
to thekdropped
field.kflags
(int capacity) Sets the address of the specifiedIntBuffer
to thekflags
field.khead
(int capacity) Sets the address of the specifiedIntBuffer
to thekhead
field.kring_entries
(int capacity) kring_entries
(IntBuffer value) Sets the address of the specifiedIntBuffer
to thekring_entries(int)
field.kring_mask
(int capacity) kring_mask
(IntBuffer value) Sets the address of the specifiedIntBuffer
to thekring_mask(int)
field.ktail
(int capacity) Sets the address of the specifiedIntBuffer
to thektail
field.static IOURingSQ
malloc()
Returns a newIOURingSQ
instance allocated withmemAlloc
.static IOURingSQ.Buffer
malloc
(int capacity) Returns a newIOURingSQ.Buffer
instance allocated withmemAlloc
.static IOURingSQ.Buffer
malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingSQ.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingSQ
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingSQ
instance allocated on the specifiedMemoryStack
.static IntBuffer
narray
(long struct, int capacity) Unsafe version ofarray
.static void
Unsafe version ofarray
.static IntBuffer
nkdropped
(long struct, int capacity) Unsafe version ofkdropped
.static void
Unsafe version ofkdropped
.static IntBuffer
nkflags
(long struct, int capacity) Unsafe version ofkflags
.static void
Unsafe version ofkflags
.static IntBuffer
nkhead
(long struct, int capacity) Unsafe version ofkhead
.static void
Unsafe version ofkhead
.static IntBuffer
nkring_entries
(long struct, int capacity) Unsafe version ofkring_entries
.static void
nkring_entries
(long struct, IntBuffer value) Unsafe version ofkring_entries
.static IntBuffer
nkring_mask
(long struct, int capacity) Unsafe version ofkring_mask
.static void
nkring_mask
(long struct, IntBuffer value) Unsafe version ofkring_mask
.static IntBuffer
nktail
(long struct, int capacity) Unsafe version ofktail
.static void
Unsafe version ofktail
.static IntBuffer
npad
(long struct) static int
npad
(long struct, int index) static void
npad
(long struct, int index, int value) static void
static int
nring_entries
(long struct) Unsafe version ofring_entries()
.static void
nring_entries
(long struct, int value) Unsafe version ofring_entries
.static int
nring_mask
(long struct) Unsafe version ofring_mask()
.static void
nring_mask
(long struct, int value) Unsafe version ofring_mask
.static ByteBuffer
nring_ptr
(long struct) Unsafe version ofring_ptr
.static void
nring_ptr
(long struct, ByteBuffer value) Unsafe version ofring_ptr
.static long
nring_sz
(long struct) Unsafe version ofring_sz()
.static void
nring_sz
(long struct, long value) Sets the specified value to thering_sz
field of the specifiedstruct
.static int
nsqe_head
(long struct) Unsafe version ofsqe_head()
.static void
nsqe_head
(long struct, int value) Unsafe version ofsqe_head
.static int
nsqe_tail
(long struct) Unsafe version ofsqe_tail()
.static void
nsqe_tail
(long struct, int value) Unsafe version ofsqe_tail
.static IOURingSQE
nsqes
(long struct) Unsafe version ofsqes()
.static void
nsqes
(long struct, IOURingSQE value) Unsafe version ofsqes
.int
ring_entries
(int value) Sets the specified value to thering_entries
field.int
ring_mask
(int value) Sets the specified value to thering_mask
field.ring_ptr()
ring_ptr
(ByteBuffer value) Sets the address of the specifiedByteBuffer
to thering_ptr
field.long
ring_sz()
set
(IntBuffer khead, IntBuffer ktail, IntBuffer kring_mask, IntBuffer kring_entries, IntBuffer kflags, IntBuffer kdropped, IntBuffer array, IOURingSQE sqes, int sqe_head, int sqe_tail, ByteBuffer ring_ptr, int ring_mask, int ring_entries) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
int
sqe_head()
sqe_head
(int value) Sets the specified value to thesqe_head
field.int
sqe_tail()
sqe_tail
(int value) Sets the specified value to thesqe_tail
field.sqes()
sqes
(IOURingSQE value) Sets the address of the specifiedIOURingSQE
to thesqes
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. -
KHEAD
public static final int KHEADThe struct member offsets. -
KTAIL
public static final int KTAILThe struct member offsets. -
KRING_MASK
public static final int KRING_MASKThe struct member offsets. -
KRING_ENTRIES
public static final int KRING_ENTRIESThe struct member offsets. -
KFLAGS
public static final int KFLAGSThe struct member offsets. -
KDROPPED
public static final int KDROPPEDThe struct member offsets. -
ARRAY
public static final int ARRAYThe struct member offsets. -
SQES
public static final int SQESThe struct member offsets. -
SQE_HEAD
public static final int SQE_HEADThe struct member offsets. -
SQE_TAIL
public static final int SQE_TAILThe struct member offsets. -
RING_SZ
public static final int RING_SZThe struct member offsets. -
RING_PTR
public static final int RING_PTRThe struct member offsets. -
RING_MASK
public static final int RING_MASKThe struct member offsets. -
RING_ENTRIES
public static final int RING_ENTRIESThe struct member offsets. -
PAD
public static final int PADThe struct member offsets.
-
-
Constructor Details
-
IOURingSQ
Creates aIOURingSQ
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<IOURingSQ>
-
khead
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by thekhead
field.
-
ktail
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by thektail
field.
-
kring_mask
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- Deprecated: use
ring_mask
instead of*kring_mask
-
kring_entries
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- Deprecated: use
ring_entries
instead of*kring_entries
-
kflags
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by thekflags
field.
-
kdropped
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by thekdropped
field.
-
array
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by thearray
field.
-
sqes
- Returns:
- a
IOURingSQE
view of the struct pointed to by thesqes
field.
-
sqe_head
public int sqe_head()- Returns:
- the value of the
sqe_head
field.
-
sqe_tail
public int sqe_tail()- Returns:
- the value of the
sqe_tail
field.
-
ring_sz
public long ring_sz()- Returns:
- the value of the
ring_sz
field.
-
ring_ptr
- Returns:
- a
ByteBuffer
view of the data pointed to by thering_ptr
field.
-
ring_mask
public int ring_mask()- Returns:
- the value of the
ring_mask
field.
-
ring_entries
public int ring_entries()- Returns:
- the value of the
ring_entries
field.
-
khead
Sets the address of the specifiedIntBuffer
to thekhead
field. -
ktail
Sets the address of the specifiedIntBuffer
to thektail
field. -
kring_mask
Sets the address of the specifiedIntBuffer
to thekring_mask(int)
field. -
kring_entries
Sets the address of the specifiedIntBuffer
to thekring_entries(int)
field. -
kflags
Sets the address of the specifiedIntBuffer
to thekflags
field. -
kdropped
Sets the address of the specifiedIntBuffer
to thekdropped
field. -
array
Sets the address of the specifiedIntBuffer
to thearray
field. -
sqes
Sets the address of the specifiedIOURingSQE
to thesqes
field. -
sqe_head
Sets the specified value to thesqe_head
field. -
sqe_tail
Sets the specified value to thesqe_tail
field. -
ring_ptr
Sets the address of the specifiedByteBuffer
to thering_ptr
field. -
ring_mask
Sets the specified value to thering_mask
field. -
ring_entries
Sets the specified value to thering_entries
field. -
set
public IOURingSQ set(IntBuffer khead, IntBuffer ktail, IntBuffer kring_mask, IntBuffer kring_entries, IntBuffer kflags, IntBuffer kdropped, IntBuffer array, IOURingSQE sqes, int sqe_head, int sqe_tail, ByteBuffer ring_ptr, int ring_mask, int ring_entries) 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 newIOURingSQ
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOURingSQ
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOURingSQ
instance allocated withBufferUtils
. -
create
Returns a newIOURingSQ
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingSQ.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOURingSQ.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOURingSQ.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOURingSQ.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingSQ
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOURingSQ
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOURingSQ.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOURingSQ.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nkhead
Unsafe version ofkhead
. -
nktail
Unsafe version ofktail
. -
nkring_mask
Unsafe version ofkring_mask
. -
nkring_entries
Unsafe version ofkring_entries
. -
nkflags
Unsafe version ofkflags
. -
nkdropped
Unsafe version ofkdropped
. -
narray
Unsafe version ofarray
. -
nsqes
Unsafe version ofsqes()
. -
nsqe_head
public static int nsqe_head(long struct) Unsafe version ofsqe_head()
. -
nsqe_tail
public static int nsqe_tail(long struct) Unsafe version ofsqe_tail()
. -
nring_sz
public static long nring_sz(long struct) Unsafe version ofring_sz()
. -
nring_ptr
Unsafe version ofring_ptr
. -
nring_mask
public static int nring_mask(long struct) Unsafe version ofring_mask()
. -
nring_entries
public static int nring_entries(long struct) Unsafe version ofring_entries()
. -
npad
-
npad
public static int npad(long struct, int index) -
nkhead
Unsafe version ofkhead
. -
nktail
Unsafe version ofktail
. -
nkring_mask
Unsafe version ofkring_mask
. -
nkring_entries
Unsafe version ofkring_entries
. -
nkflags
Unsafe version ofkflags
. -
nkdropped
Unsafe version ofkdropped
. -
narray
Unsafe version ofarray
. -
nsqes
Unsafe version ofsqes
. -
nsqe_head
public static void nsqe_head(long struct, int value) Unsafe version ofsqe_head
. -
nsqe_tail
public static void nsqe_tail(long struct, int value) Unsafe version ofsqe_tail
. -
nring_sz
public static void nring_sz(long struct, long value) Sets the specified value to thering_sz
field of the specifiedstruct
. -
nring_ptr
Unsafe version ofring_ptr
. -
nring_mask
public static void nring_mask(long struct, int value) Unsafe version ofring_mask
. -
nring_entries
public static void nring_entries(long struct, int value) Unsafe version ofring_entries
. -
npad
-
npad
public static void npad(long struct, int index, int value) -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-