Package org.lwjgl.system.linux.liburing
Class IOURingZCRXIfqReg
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct io_uring_zcrx_ifq_reg {
__u32 if_idx;
__u32 if_rxq;
__u32 rq_entries;
__u32 flags;
__u64 area_ptr;
__u64 region_ptr;
{@link IOURingZCRXOffsets struct io_uring_zcrx_offsets} offsets;
__u32 zcrx_id;
__u32 __resv2;
__u64 __resv[3];
}
-
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 member offsets.static final int
The struct member offsets.static 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 size in bytes.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
ConstructorsConstructorDescriptionIOURingZCRXIfqReg
(ByteBuffer container) Creates aIOURingZCRXIfqReg
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
area_ptr()
area_ptr
(long value) Sets the specified value to thearea_ptr
field.static IOURingZCRXIfqReg
calloc()
Returns a newIOURingZCRXIfqReg
instance allocated withmemCalloc
.static IOURingZCRXIfqReg.Buffer
calloc
(int capacity) Returns a newIOURingZCRXIfqReg.Buffer
instance allocated withmemCalloc
.static IOURingZCRXIfqReg.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newIOURingZCRXIfqReg.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingZCRXIfqReg
calloc
(MemoryStack stack) Returns a newIOURingZCRXIfqReg
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingZCRXIfqReg
create()
Returns a newIOURingZCRXIfqReg
instance allocated withBufferUtils
.static IOURingZCRXIfqReg.Buffer
create
(int capacity) Returns a newIOURingZCRXIfqReg.Buffer
instance allocated withBufferUtils
.static IOURingZCRXIfqReg
create
(long address) Returns a newIOURingZCRXIfqReg
instance for the specified memory address.static IOURingZCRXIfqReg.Buffer
create
(long address, int capacity) Create aIOURingZCRXIfqReg.Buffer
instance at the specified memory.static @Nullable IOURingZCRXIfqReg
createSafe
(long address) static @Nullable IOURingZCRXIfqReg.Buffer
createSafe
(long address, int capacity) int
flags()
flags
(int value) Sets the specified value to theflags
field.int
if_idx()
if_idx
(int value) Sets the specified value to theif_idx
field.int
if_rxq()
if_rxq
(int value) Sets the specified value to theif_rxq
field.static IOURingZCRXIfqReg
malloc()
Returns a newIOURingZCRXIfqReg
instance allocated withmemAlloc
.static IOURingZCRXIfqReg.Buffer
malloc
(int capacity) Returns a newIOURingZCRXIfqReg.Buffer
instance allocated withmemAlloc
.static IOURingZCRXIfqReg.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newIOURingZCRXIfqReg.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingZCRXIfqReg
malloc
(MemoryStack stack) Returns a newIOURingZCRXIfqReg
instance allocated on the specifiedMemoryStack
.static LongBuffer
n__resv
(long struct) static long
n__resv
(long struct, int index) static void
n__resv
(long struct, int index, long value) static void
n__resv
(long struct, LongBuffer value) static int
n__resv2
(long struct) static void
n__resv2
(long struct, int value) static long
narea_ptr
(long struct) Unsafe version ofarea_ptr()
.static void
narea_ptr
(long struct, long value) Unsafe version ofarea_ptr
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static int
nif_idx
(long struct) Unsafe version ofif_idx()
.static void
nif_idx
(long struct, int value) Unsafe version ofif_idx
.static int
nif_rxq
(long struct) Unsafe version ofif_rxq()
.static void
nif_rxq
(long struct, int value) Unsafe version ofif_rxq
.static IOURingZCRXOffsets
noffsets
(long struct) Unsafe version ofoffsets()
.static void
noffsets
(long struct, IOURingZCRXOffsets value) Unsafe version ofoffsets
.static long
nregion_ptr
(long struct) Unsafe version ofregion_ptr()
.static void
nregion_ptr
(long struct, long value) Unsafe version ofregion_ptr
.static int
nrq_entries
(long struct) Unsafe version ofrq_entries()
.static void
nrq_entries
(long struct, int value) Unsafe version ofrq_entries
.static int
nzcrx_id
(long struct) Unsafe version ofzcrx_id()
.static void
nzcrx_id
(long struct, int value) Unsafe version ofzcrx_id
.offsets()
offsets
(Consumer<IOURingZCRXOffsets> consumer) Passes theoffsets
field to the specifiedConsumer
.offsets
(IOURingZCRXOffsets value) Copies the specifiedIOURingZCRXOffsets
to theoffsets
field.long
region_ptr
(long value) Sets the specified value to theregion_ptr
field.int
rq_entries
(int value) Sets the specified value to therq_entries
field.set
(int if_idx, int if_rxq, int rq_entries, int flags, long area_ptr, long region_ptr, IOURingZCRXOffsets offsets, int zcrx_id) Initializes this struct with the specified values.set
(IOURingZCRXIfqReg src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
zcrx_id()
zcrx_id
(int value) Sets the specified value to thezcrx_id
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. -
IF_IDX
public static final int IF_IDXThe struct member offsets. -
IF_RXQ
public static final int IF_RXQThe struct member offsets. -
RQ_ENTRIES
public static final int RQ_ENTRIESThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
AREA_PTR
public static final int AREA_PTRThe struct member offsets. -
REGION_PTR
public static final int REGION_PTRThe struct member offsets. -
OFFSETS
public static final int OFFSETSThe struct member offsets. -
ZCRX_ID
public static final int ZCRX_IDThe struct member offsets. -
__RESV2
public static final int __RESV2The struct member offsets. -
__RESV
public static final int __RESVThe struct member offsets.
-
-
Constructor Details
-
IOURingZCRXIfqReg
Creates aIOURingZCRXIfqReg
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<IOURingZCRXIfqReg>
-
if_idx
public int if_idx()- Returns:
- the value of the
if_idx
field.
-
if_rxq
public int if_rxq()- Returns:
- the value of the
if_rxq
field.
-
rq_entries
public int rq_entries()- Returns:
- the value of the
rq_entries
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
area_ptr
public long area_ptr()- Returns:
- the value of the
area_ptr
field.
-
region_ptr
public long region_ptr()- Returns:
- the value of the
region_ptr
field.
-
offsets
- Returns:
- a
IOURingZCRXOffsets
view of theoffsets
field.
-
zcrx_id
public int zcrx_id()- Returns:
- the value of the
zcrx_id
field.
-
if_idx
Sets the specified value to theif_idx
field. -
if_rxq
Sets the specified value to theif_rxq
field. -
rq_entries
Sets the specified value to therq_entries
field. -
flags
Sets the specified value to theflags
field. -
area_ptr
Sets the specified value to thearea_ptr
field. -
region_ptr
Sets the specified value to theregion_ptr
field. -
offsets
Copies the specifiedIOURingZCRXOffsets
to theoffsets
field. -
offsets
Passes theoffsets
field to the specifiedConsumer
. -
zcrx_id
Sets the specified value to thezcrx_id
field. -
set
public IOURingZCRXIfqReg set(int if_idx, int if_rxq, int rq_entries, int flags, long area_ptr, long region_ptr, IOURingZCRXOffsets offsets, int zcrx_id) 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 newIOURingZCRXIfqReg
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOURingZCRXIfqReg
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOURingZCRXIfqReg
instance allocated withBufferUtils
. -
create
Returns a newIOURingZCRXIfqReg
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingZCRXIfqReg.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOURingZCRXIfqReg.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOURingZCRXIfqReg.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOURingZCRXIfqReg.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingZCRXIfqReg
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOURingZCRXIfqReg
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOURingZCRXIfqReg.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOURingZCRXIfqReg.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nif_idx
public static int nif_idx(long struct) Unsafe version ofif_idx()
. -
nif_rxq
public static int nif_rxq(long struct) Unsafe version ofif_rxq()
. -
nrq_entries
public static int nrq_entries(long struct) Unsafe version ofrq_entries()
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
narea_ptr
public static long narea_ptr(long struct) Unsafe version ofarea_ptr()
. -
nregion_ptr
public static long nregion_ptr(long struct) Unsafe version ofregion_ptr()
. -
noffsets
Unsafe version ofoffsets()
. -
nzcrx_id
public static int nzcrx_id(long struct) Unsafe version ofzcrx_id()
. -
n__resv2
public static int n__resv2(long struct) -
n__resv
-
n__resv
public static long n__resv(long struct, int index) -
nif_idx
public static void nif_idx(long struct, int value) Unsafe version ofif_idx
. -
nif_rxq
public static void nif_rxq(long struct, int value) Unsafe version ofif_rxq
. -
nrq_entries
public static void nrq_entries(long struct, int value) Unsafe version ofrq_entries
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
. -
narea_ptr
public static void narea_ptr(long struct, long value) Unsafe version ofarea_ptr
. -
nregion_ptr
public static void nregion_ptr(long struct, long value) Unsafe version ofregion_ptr
. -
noffsets
Unsafe version ofoffsets
. -
nzcrx_id
public static void nzcrx_id(long struct, int value) Unsafe version ofzcrx_id
. -
n__resv2
public static void n__resv2(long struct, int value) -
n__resv
-
n__resv
public static void n__resv(long struct, int index, long value)
-