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.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 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 aIOURingNAPIinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintbusy_poll_to(int value) Sets the specified value to thebusy_poll_tofield.static IOURingNAPIcalloc()Returns a newIOURingNAPIinstance allocated withmemCalloc.static IOURingNAPI.Buffercalloc(int capacity) Returns a newIOURingNAPI.Bufferinstance allocated withmemCalloc.static IOURingNAPI.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingNAPI.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingNAPIcalloc(MemoryStack stack) Returns a newIOURingNAPIinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingNAPIcreate()Returns a newIOURingNAPIinstance allocated withBufferUtils.static IOURingNAPI.Buffercreate(int capacity) Returns a newIOURingNAPI.Bufferinstance allocated withBufferUtils.static IOURingNAPIcreate(long address) Returns a newIOURingNAPIinstance for the specified memory address.static IOURingNAPI.Buffercreate(long address, int capacity) Create aIOURingNAPI.Bufferinstance at the specified memory.static @Nullable IOURingNAPIcreateSafe(long address) static @Nullable IOURingNAPI.BuffercreateSafe(long address, int capacity) static IOURingNAPImalloc()Returns a newIOURingNAPIinstance allocated withmemAlloc.static IOURingNAPI.Buffermalloc(int capacity) Returns a newIOURingNAPI.Bufferinstance allocated withmemAlloc.static IOURingNAPI.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURingNAPI.Bufferinstance allocated on the specifiedMemoryStack.static IOURingNAPImalloc(MemoryStack stack) Returns a newIOURingNAPIinstance allocated on the specifiedMemoryStack.static intnbusy_poll_to(long struct) Unsafe version ofbusy_poll_to().static voidnbusy_poll_to(long struct, int value) Unsafe version ofbusy_poll_to.static ByteBuffernpad(long struct) static bytenpad(long struct, int index) static voidnpad(long struct, int index, byte value) static voidnpad(long struct, ByteBuffer value) static bytenprefer_busy_poll(long struct) Unsafe version ofprefer_busy_poll().static voidnprefer_busy_poll(long struct, byte value) Unsafe version ofprefer_busy_poll.static longnresv(long struct) static voidnresv(long struct, long value) byteprefer_busy_poll(byte value) Sets the specified value to theprefer_busy_pollfield.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.intsizeof()Returnssizeof(struct).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. -
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 aIOURingNAPIinstance 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).- Specified by:
sizeofin classStruct<IOURingNAPI>
-
busy_poll_to
public int busy_poll_to()- Returns:
- the value of the
busy_poll_tofield.
-
prefer_busy_poll
public byte prefer_busy_poll()- Returns:
- the value of the
prefer_busy_pollfield.
-
busy_poll_to
Sets the specified value to thebusy_poll_tofield. -
prefer_busy_poll
Sets the specified value to theprefer_busy_pollfield. -
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 newIOURingNAPIinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingNAPIinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingNAPIinstance allocated withBufferUtils. -
create
Returns a newIOURingNAPIinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingNAPI.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingNAPI.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingNAPI.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingNAPI.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingNAPIinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingNAPIinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingNAPI.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingNAPI.Bufferinstance allocated on the specifiedMemoryStackand 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)
-