Package org.lwjgl.system.linux.liburing
Class IOURingSQ
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.linux.liburing.IOURingSQ
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IOURingSQ extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
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 pad[4]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IOURingSQ.Buffer
An array ofIOURingSQ
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
ARRAY
KDROPPED
KFLAGS
KHEAD
KRING_ENTRIES
KRING_MASK
KTAIL
PAD
RING_PTR
RING_SZThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
SQE_HEAD
SQE_TAIL
SQESThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description IOURingSQ(java.nio.ByteBuffer container)
Creates aIOURingSQ
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.IntBuffer
array(int capacity)
IOURingSQ
array(java.nio.IntBuffer value)
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)
java.nio.IntBuffer
kdropped(int capacity)
IOURingSQ
kdropped(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thekdropped
field.java.nio.IntBuffer
kflags(int capacity)
IOURingSQ
kflags(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thekflags
field.java.nio.IntBuffer
khead(int capacity)
IOURingSQ
khead(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thekhead
field.java.nio.IntBuffer
kring_entries(int capacity)
IOURingSQ
kring_entries(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thekring_entries
field.java.nio.IntBuffer
kring_mask(int capacity)
IOURingSQ
kring_mask(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thekring_mask
field.java.nio.IntBuffer
ktail(int capacity)
IOURingSQ
ktail(java.nio.IntBuffer value)
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 java.nio.IntBuffer
narray(long struct, int capacity)
Unsafe version ofarray
.static void
narray(long struct, java.nio.IntBuffer value)
Unsafe version ofarray
.static java.nio.IntBuffer
nkdropped(long struct, int capacity)
Unsafe version ofkdropped
.static void
nkdropped(long struct, java.nio.IntBuffer value)
Unsafe version ofkdropped
.static java.nio.IntBuffer
nkflags(long struct, int capacity)
Unsafe version ofkflags
.static void
nkflags(long struct, java.nio.IntBuffer value)
Unsafe version ofkflags
.static java.nio.IntBuffer
nkhead(long struct, int capacity)
Unsafe version ofkhead
.static void
nkhead(long struct, java.nio.IntBuffer value)
Unsafe version ofkhead
.static java.nio.IntBuffer
nkring_entries(long struct, int capacity)
Unsafe version ofkring_entries
.static void
nkring_entries(long struct, java.nio.IntBuffer value)
Unsafe version ofkring_entries
.static java.nio.IntBuffer
nkring_mask(long struct, int capacity)
Unsafe version ofkring_mask
.static void
nkring_mask(long struct, java.nio.IntBuffer value)
Unsafe version ofkring_mask
.static java.nio.IntBuffer
nktail(long struct, int capacity)
Unsafe version ofktail
.static void
nktail(long struct, java.nio.IntBuffer value)
Unsafe version ofktail
.static java.nio.IntBuffer
npad(long struct)
static int
npad(long struct, int index)
static void
npad(long struct, int index, int value)
static void
npad(long struct, java.nio.IntBuffer value)
static java.nio.ByteBuffer
nring_ptr(long struct)
Unsafe version ofring_ptr
.static void
nring_ptr(long struct, java.nio.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
.java.nio.ByteBuffer
ring_ptr()
IOURingSQ
ring_ptr(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to thering_ptr
field.long
ring_sz()
IOURingSQ
set(java.nio.IntBuffer khead, java.nio.IntBuffer ktail, java.nio.IntBuffer kring_mask, java.nio.IntBuffer kring_entries, java.nio.IntBuffer kflags, java.nio.IntBuffer kdropped, java.nio.IntBuffer array, IOURingSQE sqes, int sqe_head, int sqe_tail, java.nio.ByteBuffer ring_ptr)
Initializes this struct with the specified values.IOURingSQ
set(IOURingSQ src)
Copies the specified struct data to this struct.int
sizeof()
int
sqe_head()
IOURingSQ
sqe_head(int value)
Sets the specified value to thesqe_head
field.int
sqe_tail()
IOURingSQ
sqe_tail(int value)
Sets the specified value to thesqe_tail
field.IOURingSQE
sqes()
IOURingSQ
sqes(IOURingSQE value)
Sets the address of the specifiedIOURingSQE
to thesqes
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.
-
-
-
Constructor Detail
-
IOURingSQ
public IOURingSQ(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
khead
public java.nio.IntBuffer khead(int capacity)
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by thekhead
field.
-
ktail
public java.nio.IntBuffer ktail(int capacity)
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by thektail
field.
-
kring_mask
public java.nio.IntBuffer kring_mask(int capacity)
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by thekring_mask
field.
-
kring_entries
public java.nio.IntBuffer kring_entries(int capacity)
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by thekring_entries
field.
-
kflags
public java.nio.IntBuffer kflags(int capacity)
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by thekflags
field.
-
kdropped
public java.nio.IntBuffer kdropped(int capacity)
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by thekdropped
field.
-
array
public java.nio.IntBuffer array(int capacity)
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by thearray
field.
-
sqes
public IOURingSQE 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
public java.nio.ByteBuffer ring_ptr()
- Returns:
- a
ByteBuffer
view of the data pointed to by thering_ptr
field.
-
khead
public IOURingSQ khead(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thekhead
field.
-
ktail
public IOURingSQ ktail(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thektail
field.
-
kring_mask
public IOURingSQ kring_mask(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thekring_mask
field.
-
kring_entries
public IOURingSQ kring_entries(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thekring_entries
field.
-
kflags
public IOURingSQ kflags(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thekflags
field.
-
kdropped
public IOURingSQ kdropped(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thekdropped
field.
-
array
public IOURingSQ array(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thearray
field.
-
sqes
public IOURingSQ sqes(IOURingSQE value)
Sets the address of the specifiedIOURingSQE
to thesqes
field.
-
sqe_head
public IOURingSQ sqe_head(int value)
Sets the specified value to thesqe_head
field.
-
sqe_tail
public IOURingSQ sqe_tail(int value)
Sets the specified value to thesqe_tail
field.
-
ring_ptr
public IOURingSQ ring_ptr(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to thering_ptr
field.
-
set
public IOURingSQ set(java.nio.IntBuffer khead, java.nio.IntBuffer ktail, java.nio.IntBuffer kring_mask, java.nio.IntBuffer kring_entries, java.nio.IntBuffer kflags, java.nio.IntBuffer kdropped, java.nio.IntBuffer array, IOURingSQE sqes, int sqe_head, int sqe_tail, java.nio.ByteBuffer ring_ptr)
Initializes this struct with the specified values.
-
set
public IOURingSQ set(IOURingSQ src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static IOURingSQ malloc()
Returns a newIOURingSQ
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static IOURingSQ calloc()
Returns a newIOURingSQ
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static IOURingSQ create()
Returns a newIOURingSQ
instance allocated withBufferUtils
.
-
create
public static IOURingSQ create(long address)
Returns a newIOURingSQ
instance for the specified memory address.
-
createSafe
@Nullable public static IOURingSQ createSafe(long address)
-
malloc
public static IOURingSQ.Buffer malloc(int capacity)
Returns a newIOURingSQ.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static IOURingSQ.Buffer calloc(int capacity)
Returns a newIOURingSQ.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static IOURingSQ.Buffer create(int capacity)
Returns a newIOURingSQ.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static IOURingSQ.Buffer create(long address, int capacity)
Create aIOURingSQ.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static IOURingSQ.Buffer createSafe(long address, int capacity)
-
malloc
public static IOURingSQ malloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingSQ
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static IOURingSQ calloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingSQ
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static IOURingSQ.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingSQ.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
calloc
public 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.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nkhead
public static java.nio.IntBuffer nkhead(long struct, int capacity)
Unsafe version ofkhead
.
-
nktail
public static java.nio.IntBuffer nktail(long struct, int capacity)
Unsafe version ofktail
.
-
nkring_mask
public static java.nio.IntBuffer nkring_mask(long struct, int capacity)
Unsafe version ofkring_mask
.
-
nkring_entries
public static java.nio.IntBuffer nkring_entries(long struct, int capacity)
Unsafe version ofkring_entries
.
-
nkflags
public static java.nio.IntBuffer nkflags(long struct, int capacity)
Unsafe version ofkflags
.
-
nkdropped
public static java.nio.IntBuffer nkdropped(long struct, int capacity)
Unsafe version ofkdropped
.
-
narray
public static java.nio.IntBuffer narray(long struct, int capacity)
Unsafe version ofarray
.
-
nsqes
public static IOURingSQE nsqes(long struct)
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
public static java.nio.ByteBuffer nring_ptr(long struct)
Unsafe version ofring_ptr
.
-
npad
public static java.nio.IntBuffer npad(long struct)
-
npad
public static int npad(long struct, int index)
-
nkhead
public static void nkhead(long struct, java.nio.IntBuffer value)
Unsafe version ofkhead
.
-
nktail
public static void nktail(long struct, java.nio.IntBuffer value)
Unsafe version ofktail
.
-
nkring_mask
public static void nkring_mask(long struct, java.nio.IntBuffer value)
Unsafe version ofkring_mask
.
-
nkring_entries
public static void nkring_entries(long struct, java.nio.IntBuffer value)
Unsafe version ofkring_entries
.
-
nkflags
public static void nkflags(long struct, java.nio.IntBuffer value)
Unsafe version ofkflags
.
-
nkdropped
public static void nkdropped(long struct, java.nio.IntBuffer value)
Unsafe version ofkdropped
.
-
narray
public static void narray(long struct, java.nio.IntBuffer value)
Unsafe version ofarray
.
-
nsqes
public static void nsqes(long struct, IOURingSQE value)
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
public static void nring_ptr(long struct, java.nio.ByteBuffer value)
Unsafe version ofring_ptr
.
-
npad
public static void npad(long struct, java.nio.IntBuffer value)
-
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
-
-