Package org.lwjgl.system.linux.liburing
Class IOURingRegWait
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct io_uring_reg_wait {
struct __kernel_timespec ts;
__u32 min_wait_usec;
__u32 flags;
__u64 sigmask;
__u32 sigmask_sz;
__u32 pad[3];
__u64 pad2[2];
}-
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 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
ConstructorsConstructorDescriptionIOURingRegWait(ByteBuffer container) Creates aIOURingRegWaitinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingRegWaitcalloc()Returns a newIOURingRegWaitinstance allocated withmemCalloc.static IOURingRegWait.Buffercalloc(int capacity) Returns a newIOURingRegWait.Bufferinstance allocated withmemCalloc.static IOURingRegWait.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingRegWait.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingRegWaitcalloc(MemoryStack stack) Returns a newIOURingRegWaitinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingRegWaitcreate()Returns a newIOURingRegWaitinstance allocated withBufferUtils.static IOURingRegWait.Buffercreate(int capacity) Returns a newIOURingRegWait.Bufferinstance allocated withBufferUtils.static IOURingRegWaitcreate(long address) Returns a newIOURingRegWaitinstance for the specified memory address.static IOURingRegWait.Buffercreate(long address, int capacity) Create aIOURingRegWait.Bufferinstance at the specified memory.static @Nullable IOURingRegWaitcreateSafe(long address) static @Nullable IOURingRegWait.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.static IOURingRegWaitmalloc()Returns a newIOURingRegWaitinstance allocated withmemAlloc.static IOURingRegWait.Buffermalloc(int capacity) Returns a newIOURingRegWait.Bufferinstance allocated withmemAlloc.static IOURingRegWait.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURingRegWait.Bufferinstance allocated on the specifiedMemoryStack.static IOURingRegWaitmalloc(MemoryStack stack) Returns a newIOURingRegWaitinstance allocated on the specifiedMemoryStack.intmin_wait_usec(int value) Sets the specified value to themin_wait_usecfield.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intnmin_wait_usec(long struct) Unsafe version ofmin_wait_usec().static voidnmin_wait_usec(long struct, int value) Unsafe version ofmin_wait_usec.static IntBuffernpad(long struct) static intnpad(long struct, int index) static voidnpad(long struct, int index, int value) static voidstatic LongBuffernpad2(long struct) static longnpad2(long struct, int index) static voidnpad2(long struct, int index, long value) static voidnpad2(long struct, LongBuffer value) static longnsigmask(long struct) Unsafe version ofsigmask().static voidnsigmask(long struct, long value) Unsafe version ofsigmask.static intnsigmask_sz(long struct) Unsafe version ofsigmask_sz().static voidnsigmask_sz(long struct, int value) Unsafe version ofsigmask_sz.static KernelTimespecnts(long struct) Unsafe version ofts().static voidnts(long struct, KernelTimespec value) Unsafe version ofts.set(KernelTimespec ts, int min_wait_usec, int flags, long sigmask, int sigmask_sz) Initializes this struct with the specified values.set(IOURingRegWait src) Copies the specified struct data to this struct.longsigmask()sigmask(long value) Sets the specified value to thesigmaskfield.intsigmask_sz(int value) Sets the specified value to thesigmask_szfield.intsizeof()Returnssizeof(struct).ts()ts(Consumer<KernelTimespec> consumer) Passes thetsfield to the specifiedConsumer.ts(KernelTimespec value) Copies the specifiedKernelTimespecto thetsfield.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. -
TS
public static final int TSThe struct member offsets. -
MIN_WAIT_USEC
public static final int MIN_WAIT_USECThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
SIGMASK
public static final int SIGMASKThe struct member offsets. -
SIGMASK_SZ
public static final int SIGMASK_SZThe struct member offsets. -
PAD
public static final int PADThe struct member offsets. -
PAD2
public static final int PAD2The struct member offsets.
-
-
Constructor Details
-
IOURingRegWait
Creates aIOURingRegWaitinstance 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<IOURingRegWait>
-
ts
- Returns:
- a
KernelTimespecview of thetsfield.
-
min_wait_usec
public int min_wait_usec()- Returns:
- the value of the
min_wait_usecfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
sigmask
public long sigmask()- Returns:
- the value of the
sigmaskfield.
-
sigmask_sz
public int sigmask_sz()- Returns:
- the value of the
sigmask_szfield.
-
ts
Copies the specifiedKernelTimespecto thetsfield. -
ts
Passes thetsfield to the specifiedConsumer. -
min_wait_usec
Sets the specified value to themin_wait_usecfield. -
flags
Sets the specified value to theflagsfield. -
sigmask
Sets the specified value to thesigmaskfield. -
sigmask_sz
Sets the specified value to thesigmask_szfield. -
set
public IOURingRegWait set(KernelTimespec ts, int min_wait_usec, int flags, long sigmask, int sigmask_sz) 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 newIOURingRegWaitinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingRegWaitinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingRegWaitinstance allocated withBufferUtils. -
create
Returns a newIOURingRegWaitinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingRegWait.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingRegWait.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingRegWait.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingRegWait.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingRegWaitinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingRegWaitinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingRegWait.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingRegWait.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nts
Unsafe version ofts(). -
nmin_wait_usec
public static int nmin_wait_usec(long struct) Unsafe version ofmin_wait_usec(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nsigmask
public static long nsigmask(long struct) Unsafe version ofsigmask(). -
nsigmask_sz
public static int nsigmask_sz(long struct) Unsafe version ofsigmask_sz(). -
npad
-
npad
public static int npad(long struct, int index) -
npad2
-
npad2
public static long npad2(long struct, int index) -
nts
Unsafe version ofts. -
nmin_wait_usec
public static void nmin_wait_usec(long struct, int value) Unsafe version ofmin_wait_usec. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
nsigmask
public static void nsigmask(long struct, long value) Unsafe version ofsigmask. -
nsigmask_sz
public static void nsigmask_sz(long struct, int value) Unsafe version ofsigmask_sz. -
npad
-
npad
public static void npad(long struct, int index, int value) -
npad2
-
npad2
public static void npad2(long struct, int index, long value)
-