Package org.lwjgl.system.linux.liburing
Class IOURingSQ
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct io_uring_sq {
unsigned * khead;
unsigned * ktail;
unsigned * kring_mask;
unsigned * kring_entries;
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 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.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionIOURingSQ(ByteBuffer container) Creates aIOURingSQinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionarray(int capacity) Sets the address of the specifiedIntBufferto thearrayfield.static IOURingSQcalloc()Returns a newIOURingSQinstance allocated withmemCalloc.static IOURingSQ.Buffercalloc(int capacity) Returns a newIOURingSQ.Bufferinstance allocated withmemCalloc.static IOURingSQ.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingSQ.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingSQcalloc(MemoryStack stack) Returns a newIOURingSQinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingSQcreate()Returns a newIOURingSQinstance allocated withBufferUtils.static IOURingSQ.Buffercreate(int capacity) Returns a newIOURingSQ.Bufferinstance allocated withBufferUtils.static IOURingSQcreate(long address) Returns a newIOURingSQinstance for the specified memory address.static IOURingSQ.Buffercreate(long address, int capacity) Create aIOURingSQ.Bufferinstance at the specified memory.static @Nullable IOURingSQcreateSafe(long address) static @Nullable IOURingSQ.BuffercreateSafe(long address, int capacity) kdropped(int capacity) Sets the address of the specifiedIntBufferto thekdroppedfield.kflags(int capacity) Sets the address of the specifiedIntBufferto thekflagsfield.khead(int capacity) Sets the address of the specifiedIntBufferto thekheadfield.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 IOURingSQmalloc()Returns a newIOURingSQinstance allocated withmemAlloc.static IOURingSQ.Buffermalloc(int capacity) Returns a newIOURingSQ.Bufferinstance allocated withmemAlloc.static IOURingSQ.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURingSQ.Bufferinstance allocated on the specifiedMemoryStack.static IOURingSQmalloc(MemoryStack stack) Returns a newIOURingSQinstance allocated on the specifiedMemoryStack.static IntBuffernarray(long struct, int capacity) Unsafe version ofarray.static voidUnsafe version ofarray.static IntBuffernkdropped(long struct, int capacity) Unsafe version ofkdropped.static voidUnsafe version ofkdropped.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 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.static intnsqe_head(long struct) Unsafe version ofsqe_head().static voidnsqe_head(long struct, int value) Unsafe version ofsqe_head.static intnsqe_tail(long struct) Unsafe version ofsqe_tail().static voidnsqe_tail(long struct, int value) Unsafe version ofsqe_tail.static IOURingSQEnsqes(long struct) Unsafe version ofsqes().static voidnsqes(long struct, IOURingSQE value) Unsafe version ofsqes.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 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.intsizeof()Returnssizeof(struct).intsqe_head()sqe_head(int value) Sets the specified value to thesqe_headfield.intsqe_tail()sqe_tail(int value) Sets the specified value to thesqe_tailfield.sqes()sqes(IOURingSQE value) Sets the address of the specifiedIOURingSQEto thesqesfield.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. -
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 aIOURingSQinstance 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.
-
kdropped
- Returns:
- a
IntBufferview of the data pointed to by thekdroppedfield.
-
array
- Returns:
- a
IntBufferview of the data pointed to by thearrayfield.
-
sqes
- Returns:
- a
IOURingSQEview of the struct pointed to by thesqesfield.
-
sqe_head
public int sqe_head()- Returns:
- the value of the
sqe_headfield.
-
sqe_tail
public int sqe_tail()- Returns:
- the value of the
sqe_tailfield.
-
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. -
kdropped
Sets the address of the specifiedIntBufferto thekdroppedfield. -
array
Sets the address of the specifiedIntBufferto thearrayfield. -
sqes
Sets the address of the specifiedIOURingSQEto thesqesfield. -
sqe_head
Sets the specified value to thesqe_headfield. -
sqe_tail
Sets the specified value to thesqe_tailfield. -
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 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 newIOURingSQinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingSQinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingSQinstance allocated withBufferUtils. -
create
Returns a newIOURingSQinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingSQ.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingSQ.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingSQ.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingSQ.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingSQinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingSQinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingSQ.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingSQ.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. -
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_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
-