Package org.lwjgl.system.linux.liburing
Class IOURing
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct io_uring {
struct io_uring_sq sq;
struct io_uring_cq cq;
unsigned int flags;
int ring_fd;
unsigned int features;
int enter_ring_fd;
__u8 int_flags;
__u8 pad[3];
unsigned pad2;
}-
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 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.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionIOURing(ByteBuffer container) Creates aIOURinginstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingcalloc()Returns a newIOURinginstance allocated withmemCalloc.static IOURing.Buffercalloc(int capacity) Returns a newIOURing.Bufferinstance allocated withmemCalloc.static IOURing.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURing.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingcalloc(MemoryStack stack) Returns a newIOURinginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.cq()Passes thecqfield to the specifiedConsumer.Copies the specifiedIOURingCQto thecqfield.static IOURingcreate()Returns a newIOURinginstance allocated withBufferUtils.static IOURing.Buffercreate(int capacity) Returns a newIOURing.Bufferinstance allocated withBufferUtils.static IOURingcreate(long address) Returns a newIOURinginstance for the specified memory address.static IOURing.Buffercreate(long address, int capacity) Create aIOURing.Bufferinstance at the specified memory.static @Nullable IOURingcreateSafe(long address) static @Nullable IOURing.BuffercreateSafe(long address, int capacity) intenter_ring_fd(int value) Sets the specified value to theenter_ring_fdfield.intfeatures()features(int value) Sets the specified value to thefeaturesfield.intflags()flags(int value) Sets the specified value to theflagsfield.byteint_flags(byte value) Sets the specified value to theint_flagsfield.static IOURingmalloc()Returns a newIOURinginstance allocated withmemAlloc.static IOURing.Buffermalloc(int capacity) Returns a newIOURing.Bufferinstance allocated withmemAlloc.static IOURing.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURing.Bufferinstance allocated on the specifiedMemoryStack.static IOURingmalloc(MemoryStack stack) Returns a newIOURinginstance allocated on the specifiedMemoryStack.static IOURingCQncq(long struct) Unsafe version ofcq().static voidUnsafe version ofcq.static intnenter_ring_fd(long struct) Unsafe version ofenter_ring_fd().static voidnenter_ring_fd(long struct, int value) Unsafe version ofenter_ring_fd.static intnfeatures(long struct) Unsafe version offeatures().static voidnfeatures(long struct, int value) Unsafe version offeatures.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static bytenint_flags(long struct) Unsafe version ofint_flags().static voidnint_flags(long struct, byte value) Unsafe version ofint_flags.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 intnpad2(long struct) static voidnpad2(long struct, int value) static intnring_fd(long struct) Unsafe version ofring_fd().static voidnring_fd(long struct, int value) Unsafe version ofring_fd.static IOURingSQnsq(long struct) Unsafe version ofsq().static voidUnsafe version ofsq.intring_fd()ring_fd(int value) Sets the specified value to thering_fdfield.Copies the specified struct data to this struct.set(IOURingSQ sq, IOURingCQ cq, int flags, int ring_fd, int features, int enter_ring_fd, byte int_flags) Initializes this struct with the specified values.intsizeof()Returnssizeof(struct).sq()Passes thesqfield to the specifiedConsumer.Copies the specifiedIOURingSQto thesqfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
SQ
public static final int SQThe struct member offsets. -
CQ
public static final int CQThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
RING_FD
public static final int RING_FDThe struct member offsets. -
FEATURES
public static final int FEATURESThe struct member offsets. -
ENTER_RING_FD
public static final int ENTER_RING_FDThe struct member offsets. -
INT_FLAGS
public static final int INT_FLAGSThe struct member offsets. -
PAD
public static final int PADThe struct member offsets. -
PAD2
public static final int PAD2The struct member offsets.
-
-
Constructor Details
-
IOURing
Creates aIOURinginstance 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). -
sq
- Returns:
- a
IOURingSQview of thesqfield.
-
cq
- Returns:
- a
IOURingCQview of thecqfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
ring_fd
public int ring_fd()- Returns:
- the value of the
ring_fdfield.
-
features
public int features()- Returns:
- the value of the
featuresfield.
-
enter_ring_fd
public int enter_ring_fd()- Returns:
- the value of the
enter_ring_fdfield.
-
int_flags
public byte int_flags()- Returns:
- the value of the
int_flagsfield.
-
sq
Copies the specifiedIOURingSQto thesqfield. -
sq
Passes thesqfield to the specifiedConsumer. -
cq
Copies the specifiedIOURingCQto thecqfield. -
cq
Passes thecqfield to the specifiedConsumer. -
flags
Sets the specified value to theflagsfield. -
ring_fd
Sets the specified value to thering_fdfield. -
features
Sets the specified value to thefeaturesfield. -
enter_ring_fd
Sets the specified value to theenter_ring_fdfield. -
int_flags
Sets the specified value to theint_flagsfield. -
set
public IOURing set(IOURingSQ sq, IOURingCQ cq, int flags, int ring_fd, int features, int enter_ring_fd, byte int_flags) 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 newIOURinginstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURinginstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURinginstance allocated withBufferUtils. -
create
Returns a newIOURinginstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURing.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURing.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURing.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURing.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURinginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURinginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURing.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURing.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsq
Unsafe version ofsq(). -
ncq
Unsafe version ofcq(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nring_fd
public static int nring_fd(long struct) Unsafe version ofring_fd(). -
nfeatures
public static int nfeatures(long struct) Unsafe version offeatures(). -
nenter_ring_fd
public static int nenter_ring_fd(long struct) Unsafe version ofenter_ring_fd(). -
nint_flags
public static byte nint_flags(long struct) Unsafe version ofint_flags(). -
npad
-
npad
public static byte npad(long struct, int index) -
npad2
public static int npad2(long struct) -
nsq
Unsafe version ofsq. -
ncq
Unsafe version ofcq. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
nring_fd
public static void nring_fd(long struct, int value) Unsafe version ofring_fd. -
nfeatures
public static void nfeatures(long struct, int value) Unsafe version offeatures. -
nenter_ring_fd
public static void nenter_ring_fd(long struct, int value) Unsafe version ofenter_ring_fd. -
nint_flags
public static void nint_flags(long struct, byte value) Unsafe version ofint_flags. -
npad
-
npad
public static void npad(long struct, int index, byte value) -
npad2
public static void npad2(long struct, int value) -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-