Package org.lwjgl.system.linux.liburing
Class IOURingCQ
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct
org.lwjgl.system.linux.liburing.IOURingCQ
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IOURingCQ
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Layout
struct io_uring_cq {
unsigned * khead;
unsigned * ktail;
unsigned * kring_mask(int)
;
unsigned * kring_entries(int)
;
unsigned * kflags;
unsigned * koverflow;
struct io_uring_cqe
* cqes;
size_t ring_sz;
void * ring_ptr;
unsigned ring_mask;
unsigned ring_entries;
unsigned int 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionIOURingCQ
(ByteBuffer container) Creates aIOURingCQ
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingCQ
calloc()
Returns a newIOURingCQ
instance allocated withmemCalloc
.static IOURingCQ.Buffer
calloc
(int capacity) Returns a newIOURingCQ.Buffer
instance allocated withmemCalloc
.static IOURingCQ.Buffer
calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingCQ.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingCQ
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingCQ
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.cqes()
cqes
(IOURingCQE value) Sets the address of the specifiedIOURingCQE
to thecqes
field.static IOURingCQ
create()
Returns a newIOURingCQ
instance allocated withBufferUtils
.static IOURingCQ.Buffer
create
(int capacity) Returns a newIOURingCQ.Buffer
instance allocated withBufferUtils
.static IOURingCQ
create
(long address) Returns a newIOURingCQ
instance for the specified memory address.static IOURingCQ.Buffer
create
(long address, int capacity) Create aIOURingCQ.Buffer
instance at the specified memory.static IOURingCQ
createSafe
(long address) static IOURingCQ.Buffer
createSafe
(long address, int capacity) kflags
(int capacity) Sets the address of the specifiedIntBuffer
to thekflags
field.khead
(int capacity) Sets the address of the specifiedIntBuffer
to thekhead
field.koverflow
(int capacity) Sets the address of the specifiedIntBuffer
to thekoverflow
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 IOURingCQ
malloc()
Returns a newIOURingCQ
instance allocated withmemAlloc
.static IOURingCQ.Buffer
malloc
(int capacity) Returns a newIOURingCQ.Buffer
instance allocated withmemAlloc
.static IOURingCQ.Buffer
malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingCQ.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingCQ
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingCQ
instance allocated on the specifiedMemoryStack
.static IOURingCQE
ncqes
(long struct) Unsafe version ofcqes()
.static void
ncqes
(long struct, IOURingCQE value) Unsafe version ofcqes
.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
nkoverflow
(long struct, int capacity) Unsafe version ofkoverflow
.static void
nkoverflow
(long struct, IntBuffer value) Unsafe version ofkoverflow
.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
.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 koverflow, IOURingCQE cqes, 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()
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. -
KOVERFLOW
public static final int KOVERFLOWThe struct member offsets. -
CQES
public static final int CQESThe 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
-
IOURingCQ
Creates aIOURingCQ
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
-
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.
-
koverflow
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by thekoverflow
field.
-
cqes
- Returns:
- a
IOURingCQE
view of the struct pointed to by thecqes
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. -
koverflow
Sets the address of the specifiedIntBuffer
to thekoverflow
field. -
cqes
Sets the address of the specifiedIOURingCQE
to thecqes
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 IOURingCQ set(IntBuffer khead, IntBuffer ktail, IntBuffer kring_mask, IntBuffer kring_entries, IntBuffer kflags, IntBuffer koverflow, IOURingCQE cqes, 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 newIOURingCQ
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOURingCQ
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOURingCQ
instance allocated withBufferUtils
. -
create
Returns a newIOURingCQ
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingCQ.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOURingCQ.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOURingCQ.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOURingCQ.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingCQ
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOURingCQ
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOURingCQ.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOURingCQ.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
. -
nkoverflow
Unsafe version ofkoverflow
. -
ncqes
Unsafe version ofcqes()
. -
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
. -
nkoverflow
Unsafe version ofkoverflow
. -
ncqes
Unsafe version ofcqes
. -
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
-