Package org.lwjgl.system.linux.liburing
Class IOURingNAPI
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct io_uring_napi {
__u32 busy_poll_to;
__u8 prefer_busy_poll;
__u8 pad[3];
__u64 resv;
}
-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionIOURingNAPI
(ByteBuffer container) Creates aIOURingNAPI
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
busy_poll_to
(int value) Sets the specified value to thebusy_poll_to
field.static IOURingNAPI
calloc()
Returns a newIOURingNAPI
instance allocated withmemCalloc
.static IOURingNAPI.Buffer
calloc
(int capacity) Returns a newIOURingNAPI.Buffer
instance allocated withmemCalloc
.static IOURingNAPI.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newIOURingNAPI.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingNAPI
calloc
(MemoryStack stack) Returns a newIOURingNAPI
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingNAPI
create()
Returns a newIOURingNAPI
instance allocated withBufferUtils
.static IOURingNAPI.Buffer
create
(int capacity) Returns a newIOURingNAPI.Buffer
instance allocated withBufferUtils
.static IOURingNAPI
create
(long address) Returns a newIOURingNAPI
instance for the specified memory address.static IOURingNAPI.Buffer
create
(long address, int capacity) Create aIOURingNAPI.Buffer
instance at the specified memory.static @Nullable IOURingNAPI
createSafe
(long address) static @Nullable IOURingNAPI.Buffer
createSafe
(long address, int capacity) static IOURingNAPI
malloc()
Returns a newIOURingNAPI
instance allocated withmemAlloc
.static IOURingNAPI.Buffer
malloc
(int capacity) Returns a newIOURingNAPI.Buffer
instance allocated withmemAlloc
.static IOURingNAPI.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newIOURingNAPI.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingNAPI
malloc
(MemoryStack stack) Returns a newIOURingNAPI
instance allocated on the specifiedMemoryStack
.static int
nbusy_poll_to
(long struct) Unsafe version ofbusy_poll_to()
.static void
nbusy_poll_to
(long struct, int value) Unsafe version ofbusy_poll_to
.static ByteBuffer
npad
(long struct) static byte
npad
(long struct, int index) static void
npad
(long struct, int index, byte value) static void
npad
(long struct, ByteBuffer value) static byte
nprefer_busy_poll
(long struct) Unsafe version ofprefer_busy_poll()
.static void
nprefer_busy_poll
(long struct, byte value) Unsafe version ofprefer_busy_poll
.static long
nresv
(long struct) static void
nresv
(long struct, long value) byte
prefer_busy_poll
(byte value) Sets the specified value to theprefer_busy_poll
field.set
(int busy_poll_to, byte prefer_busy_poll) Initializes this struct with the specified values.set
(IOURingNAPI src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.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. -
BUSY_POLL_TO
public static final int BUSY_POLL_TOThe struct member offsets. -
PREFER_BUSY_POLL
public static final int PREFER_BUSY_POLLThe struct member offsets. -
PAD
public static final int PADThe struct member offsets. -
RESV
public static final int RESVThe struct member offsets.
-
-
Constructor Details
-
IOURingNAPI
Creates aIOURingNAPI
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<IOURingNAPI>
-
busy_poll_to
public int busy_poll_to()- Returns:
- the value of the
busy_poll_to
field.
-
prefer_busy_poll
public byte prefer_busy_poll()- Returns:
- the value of the
prefer_busy_poll
field.
-
busy_poll_to
Sets the specified value to thebusy_poll_to
field. -
prefer_busy_poll
Sets the specified value to theprefer_busy_poll
field. -
set
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 newIOURingNAPI
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOURingNAPI
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOURingNAPI
instance allocated withBufferUtils
. -
create
Returns a newIOURingNAPI
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingNAPI.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOURingNAPI.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOURingNAPI.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOURingNAPI.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingNAPI
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOURingNAPI
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOURingNAPI.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOURingNAPI.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nbusy_poll_to
public static int nbusy_poll_to(long struct) Unsafe version ofbusy_poll_to()
. -
nprefer_busy_poll
public static byte nprefer_busy_poll(long struct) Unsafe version ofprefer_busy_poll()
. -
npad
-
npad
public static byte npad(long struct, int index) -
nresv
public static long nresv(long struct) -
nbusy_poll_to
public static void nbusy_poll_to(long struct, int value) Unsafe version ofbusy_poll_to
. -
nprefer_busy_poll
public static void nprefer_busy_poll(long struct, byte value) Unsafe version ofprefer_busy_poll
. -
npad
-
npad
public static void npad(long struct, int index, byte value) -
nresv
public static void nresv(long struct, long value)
-