Package org.lwjgl.system.linux.liburing
Class IOURingCQ
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct io_uring_cq {
unsigned * khead;
unsigned * ktail;
unsigned * kring_mask;
unsigned * kring_entries;
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionIOURingCQ(ByteBuffer container) Creates aIOURingCQinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingCQcalloc()Returns a newIOURingCQinstance allocated withmemCalloc.static IOURingCQ.Buffercalloc(int capacity) Returns a newIOURingCQ.Bufferinstance allocated withmemCalloc.static IOURingCQ.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingCQ.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingCQcalloc(MemoryStack stack) Returns a newIOURingCQinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.cqes()cqes(IOURingCQE value) Sets the address of the specifiedIOURingCQEto thecqesfield.static IOURingCQcreate()Returns a newIOURingCQinstance allocated withBufferUtils.static IOURingCQ.Buffercreate(int capacity) Returns a newIOURingCQ.Bufferinstance allocated withBufferUtils.static IOURingCQcreate(long address) Returns a newIOURingCQinstance for the specified memory address.static IOURingCQ.Buffercreate(long address, int capacity) Create aIOURingCQ.Bufferinstance at the specified memory.static @Nullable IOURingCQcreateSafe(long address) static @Nullable IOURingCQ.BuffercreateSafe(long address, int capacity) kflags(int capacity) Sets the address of the specifiedIntBufferto thekflagsfield.khead(int capacity) Sets the address of the specifiedIntBufferto thekheadfield.koverflow(int capacity) Sets the address of the specifiedIntBufferto thekoverflowfield.kring_entries(int capacity) kring_entries(IntBuffer value) Sets the address of the specifiedIntBufferto thekring_entriesfield.kring_mask(int capacity) kring_mask(IntBuffer value) Sets the address of the specifiedIntBufferto thekring_maskfield.ktail(int capacity) Sets the address of the specifiedIntBufferto thektailfield.static IOURingCQmalloc()Returns a newIOURingCQinstance allocated withmemAlloc.static IOURingCQ.Buffermalloc(int capacity) Returns a newIOURingCQ.Bufferinstance allocated withmemAlloc.static IOURingCQ.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURingCQ.Bufferinstance allocated on the specifiedMemoryStack.static IOURingCQmalloc(MemoryStack stack) Returns a newIOURingCQinstance allocated on the specifiedMemoryStack.static IOURingCQEncqes(long struct) Unsafe version ofcqes().static voidncqes(long struct, IOURingCQE value) Unsafe version ofcqes.static IntBuffernkflags(long struct, int capacity) Unsafe version ofkflags.static voidUnsafe version ofkflags.static IntBuffernkhead(long struct, int capacity) Unsafe version ofkhead.static voidUnsafe version ofkhead.static IntBuffernkoverflow(long struct, int capacity) Unsafe version ofkoverflow.static voidnkoverflow(long struct, IntBuffer value) Unsafe version ofkoverflow.static IntBuffernkring_entries(long struct, int capacity) Unsafe version ofkring_entries.static voidnkring_entries(long struct, IntBuffer value) Unsafe version ofkring_entries.static IntBuffernkring_mask(long struct, int capacity) Unsafe version ofkring_mask.static voidnkring_mask(long struct, IntBuffer value) Unsafe version ofkring_mask.static IntBuffernktail(long struct, int capacity) Unsafe version ofktail.static voidUnsafe version ofktail.static IntBuffernpad(long struct) static intnpad(long struct, int index) static voidnpad(long struct, int index, int value) static voidstatic intnring_entries(long struct) Unsafe version ofring_entries().static voidnring_entries(long struct, int value) Unsafe version ofring_entries.static intnring_mask(long struct) Unsafe version ofring_mask().static voidnring_mask(long struct, int value) Unsafe version ofring_mask.static ByteBuffernring_ptr(long struct) Unsafe version ofring_ptr.static voidnring_ptr(long struct, ByteBuffer value) Unsafe version ofring_ptr.static longnring_sz(long struct) Unsafe version ofring_sz().static voidnring_sz(long struct, long value) Sets the specified value to thering_szfield of the specifiedstruct.intring_entries(int value) Sets the specified value to thering_entriesfield.intring_mask(int value) Sets the specified value to thering_maskfield.ring_ptr()ring_ptr(ByteBuffer value) Sets the address of the specifiedByteBufferto thering_ptrfield.longring_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.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aIOURingCQinstance at the current position of the specifiedByteBuffercontainer. 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()Description copied from class:StructReturnssizeof(struct). -
khead
- Returns:
- a
IntBufferview of the data pointed to by thekheadfield.
-
ktail
- Returns:
- a
IntBufferview of the data pointed to by thektailfield.
-
kring_mask
- Returns:
- a
IntBufferview of the data pointed to by thekring_maskfield.
-
kring_entries
- Returns:
- a
IntBufferview of the data pointed to by thekring_entriesfield.
-
kflags
- Returns:
- a
IntBufferview of the data pointed to by thekflagsfield.
-
koverflow
- Returns:
- a
IntBufferview of the data pointed to by thekoverflowfield.
-
cqes
- Returns:
- a
IOURingCQEview of the struct pointed to by thecqesfield.
-
ring_sz
public long ring_sz()- Returns:
- the value of the
ring_szfield.
-
ring_ptr
- Returns:
- a
ByteBufferview of the data pointed to by thering_ptrfield.
-
ring_mask
public int ring_mask()- Returns:
- the value of the
ring_maskfield.
-
ring_entries
public int ring_entries()- Returns:
- the value of the
ring_entriesfield.
-
khead
Sets the address of the specifiedIntBufferto thekheadfield. -
ktail
Sets the address of the specifiedIntBufferto thektailfield. -
kring_mask
Sets the address of the specifiedIntBufferto thekring_maskfield. -
kring_entries
Sets the address of the specifiedIntBufferto thekring_entriesfield. -
kflags
Sets the address of the specifiedIntBufferto thekflagsfield. -
koverflow
Sets the address of the specifiedIntBufferto thekoverflowfield. -
cqes
Sets the address of the specifiedIOURingCQEto thecqesfield. -
ring_ptr
Sets the address of the specifiedByteBufferto thering_ptrfield. -
ring_mask
Sets the specified value to thering_maskfield. -
ring_entries
Sets the specified value to thering_entriesfield. -
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 newIOURingCQinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingCQinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingCQinstance allocated withBufferUtils. -
create
Returns a newIOURingCQinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingCQ.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingCQ.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingCQ.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingCQ.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingCQinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingCQinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingCQ.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingCQ.Bufferinstance allocated on the specifiedMemoryStackand 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_szfield 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
-