Package org.lwjgl.system.linux.liburing
Class IOURingParams
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct io_uring_params {
__u32 sq_entries;
__u32 cq_entries;
__u32 flags;
__u32 sq_thread_cpu;
__u32 sq_thread_idle;
__u32 features;
__u32 wq_fd;
__u32 resv[3];
{@link IOSQRingOffsets struct io_sqring_offsets} sq_off;
{@link IOCQRingOffsets struct io_cqring_offsets} cq_off;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier 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 size 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionIOURingParams
(ByteBuffer container) Creates aIOURingParams
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingParams
calloc()
Returns a newIOURingParams
instance allocated withmemCalloc
.static IOURingParams.Buffer
calloc
(int capacity) Returns a newIOURingParams.Buffer
instance allocated withmemCalloc
.static IOURingParams.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newIOURingParams.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingParams
calloc
(MemoryStack stack) Returns a newIOURingParams
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
cq_entries
(int value) Sets the specified value to thecq_entries
field.cq_off()
cq_off
(Consumer<IOCQRingOffsets> consumer) Passes thecq_off
field to the specifiedConsumer
.cq_off
(IOCQRingOffsets value) Copies the specifiedIOCQRingOffsets
to thecq_off
field.static IOURingParams
create()
Returns a newIOURingParams
instance allocated withBufferUtils
.static IOURingParams.Buffer
create
(int capacity) Returns a newIOURingParams.Buffer
instance allocated withBufferUtils
.static IOURingParams
create
(long address) Returns a newIOURingParams
instance for the specified memory address.static IOURingParams.Buffer
create
(long address, int capacity) Create aIOURingParams.Buffer
instance at the specified memory.static @Nullable IOURingParams
createSafe
(long address) static @Nullable IOURingParams.Buffer
createSafe
(long address, int capacity) int
features()
features
(int value) Sets the specified value to thefeatures
field.int
flags()
flags
(int value) Sets the specified value to theflags
field.static IOURingParams
malloc()
Returns a newIOURingParams
instance allocated withmemAlloc
.static IOURingParams.Buffer
malloc
(int capacity) Returns a newIOURingParams.Buffer
instance allocated withmemAlloc
.static IOURingParams.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newIOURingParams.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingParams
malloc
(MemoryStack stack) Returns a newIOURingParams
instance allocated on the specifiedMemoryStack
.static int
ncq_entries
(long struct) Unsafe version ofcq_entries()
.static void
ncq_entries
(long struct, int value) Unsafe version ofcq_entries
.static IOCQRingOffsets
ncq_off
(long struct) Unsafe version ofcq_off()
.static void
ncq_off
(long struct, IOCQRingOffsets value) Unsafe version ofcq_off
.static int
nfeatures
(long struct) Unsafe version offeatures()
.static void
nfeatures
(long struct, int value) Unsafe version offeatures
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static IntBuffer
nresv
(long struct) static int
nresv
(long struct, int index) static void
nresv
(long struct, int index, int value) static void
static int
nsq_entries
(long struct) Unsafe version ofsq_entries()
.static void
nsq_entries
(long struct, int value) Unsafe version ofsq_entries
.static IOSQRingOffsets
nsq_off
(long struct) Unsafe version ofsq_off()
.static void
nsq_off
(long struct, IOSQRingOffsets value) Unsafe version ofsq_off
.static int
nsq_thread_cpu
(long struct) Unsafe version ofsq_thread_cpu()
.static void
nsq_thread_cpu
(long struct, int value) Unsafe version ofsq_thread_cpu
.static int
nsq_thread_idle
(long struct) Unsafe version ofsq_thread_idle()
.static void
nsq_thread_idle
(long struct, int value) Unsafe version ofsq_thread_idle
.static int
nwq_fd
(long struct) Unsafe version ofwq_fd()
.static void
nwq_fd
(long struct, int value) Unsafe version ofwq_fd
.set
(int sq_entries, int cq_entries, int flags, int sq_thread_cpu, int sq_thread_idle, int features, int wq_fd, IOSQRingOffsets sq_off, IOCQRingOffsets cq_off) Initializes this struct with the specified values.set
(IOURingParams src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
sq_entries
(int value) Sets the specified value to thesq_entries
field.sq_off()
sq_off
(Consumer<IOSQRingOffsets> consumer) Passes thesq_off
field to the specifiedConsumer
.sq_off
(IOSQRingOffsets value) Copies the specifiedIOSQRingOffsets
to thesq_off
field.int
sq_thread_cpu
(int value) Sets the specified value to thesq_thread_cpu
field.int
sq_thread_idle
(int value) Sets the specified value to thesq_thread_idle
field.int
wq_fd()
wq_fd
(int value) Sets the specified value to thewq_fd
field.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. -
SQ_ENTRIES
public static final int SQ_ENTRIESThe struct member offsets. -
CQ_ENTRIES
public static final int CQ_ENTRIESThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
SQ_THREAD_CPU
public static final int SQ_THREAD_CPUThe struct member offsets. -
SQ_THREAD_IDLE
public static final int SQ_THREAD_IDLEThe struct member offsets. -
FEATURES
public static final int FEATURESThe struct member offsets. -
WQ_FD
public static final int WQ_FDThe struct member offsets. -
RESV
public static final int RESVThe struct member offsets. -
SQ_OFF
public static final int SQ_OFFThe struct member offsets. -
CQ_OFF
public static final int CQ_OFFThe struct member offsets.
-
-
Constructor Details
-
IOURingParams
Creates aIOURingParams
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()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<IOURingParams>
-
sq_entries
public int sq_entries()- Returns:
- the value of the
sq_entries
field.
-
cq_entries
public int cq_entries()- Returns:
- the value of the
cq_entries
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
sq_thread_cpu
public int sq_thread_cpu()- Returns:
- the value of the
sq_thread_cpu
field.
-
sq_thread_idle
public int sq_thread_idle()- Returns:
- the value of the
sq_thread_idle
field.
-
features
public int features()- Returns:
- the value of the
features
field.
-
wq_fd
public int wq_fd()- Returns:
- the value of the
wq_fd
field.
-
sq_off
- Returns:
- a
IOSQRingOffsets
view of thesq_off
field.
-
cq_off
- Returns:
- a
IOCQRingOffsets
view of thecq_off
field.
-
sq_entries
Sets the specified value to thesq_entries
field. -
cq_entries
Sets the specified value to thecq_entries
field. -
flags
Sets the specified value to theflags
field. -
sq_thread_cpu
Sets the specified value to thesq_thread_cpu
field. -
sq_thread_idle
Sets the specified value to thesq_thread_idle
field. -
features
Sets the specified value to thefeatures
field. -
wq_fd
Sets the specified value to thewq_fd
field. -
sq_off
Copies the specifiedIOSQRingOffsets
to thesq_off
field. -
sq_off
Passes thesq_off
field to the specifiedConsumer
. -
cq_off
Copies the specifiedIOCQRingOffsets
to thecq_off
field. -
cq_off
Passes thecq_off
field to the specifiedConsumer
. -
set
public IOURingParams set(int sq_entries, int cq_entries, int flags, int sq_thread_cpu, int sq_thread_idle, int features, int wq_fd, IOSQRingOffsets sq_off, IOCQRingOffsets cq_off) 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 newIOURingParams
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOURingParams
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOURingParams
instance allocated withBufferUtils
. -
create
Returns a newIOURingParams
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingParams.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOURingParams.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOURingParams.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOURingParams.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingParams
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOURingParams
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOURingParams.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOURingParams.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nsq_entries
public static int nsq_entries(long struct) Unsafe version ofsq_entries()
. -
ncq_entries
public static int ncq_entries(long struct) Unsafe version ofcq_entries()
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
nsq_thread_cpu
public static int nsq_thread_cpu(long struct) Unsafe version ofsq_thread_cpu()
. -
nsq_thread_idle
public static int nsq_thread_idle(long struct) Unsafe version ofsq_thread_idle()
. -
nfeatures
public static int nfeatures(long struct) Unsafe version offeatures()
. -
nwq_fd
public static int nwq_fd(long struct) Unsafe version ofwq_fd()
. -
nresv
-
nresv
public static int nresv(long struct, int index) -
nsq_off
Unsafe version ofsq_off()
. -
ncq_off
Unsafe version ofcq_off()
. -
nsq_entries
public static void nsq_entries(long struct, int value) Unsafe version ofsq_entries
. -
ncq_entries
public static void ncq_entries(long struct, int value) Unsafe version ofcq_entries
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
. -
nsq_thread_cpu
public static void nsq_thread_cpu(long struct, int value) Unsafe version ofsq_thread_cpu
. -
nsq_thread_idle
public static void nsq_thread_idle(long struct, int value) Unsafe version ofsq_thread_idle
. -
nfeatures
public static void nfeatures(long struct, int value) Unsafe version offeatures
. -
nwq_fd
public static void nwq_fd(long struct, int value) Unsafe version ofwq_fd
. -
nresv
-
nresv
public static void nresv(long struct, int index, int value) -
nsq_off
Unsafe version ofsq_off
. -
ncq_off
Unsafe version ofcq_off
.
-