Package org.lwjgl.system.linux.liburing
Class IOURingRegWait
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct io_uring_reg_wait {
{@link KernelTimespec 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.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 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
ConstructorsConstructorDescriptionIOURingRegWait
(ByteBuffer container) Creates aIOURingRegWait
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingRegWait
calloc()
Returns a newIOURingRegWait
instance allocated withmemCalloc
.static IOURingRegWait.Buffer
calloc
(int capacity) Returns a newIOURingRegWait.Buffer
instance allocated withmemCalloc
.static IOURingRegWait.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newIOURingRegWait.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingRegWait
calloc
(MemoryStack stack) Returns a newIOURingRegWait
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingRegWait
create()
Returns a newIOURingRegWait
instance allocated withBufferUtils
.static IOURingRegWait.Buffer
create
(int capacity) Returns a newIOURingRegWait.Buffer
instance allocated withBufferUtils
.static IOURingRegWait
create
(long address) Returns a newIOURingRegWait
instance for the specified memory address.static IOURingRegWait.Buffer
create
(long address, int capacity) Create aIOURingRegWait.Buffer
instance at the specified memory.static @Nullable IOURingRegWait
createSafe
(long address) static @Nullable IOURingRegWait.Buffer
createSafe
(long address, int capacity) int
flags()
flags
(int value) Sets the specified value to theflags
field.static IOURingRegWait
malloc()
Returns a newIOURingRegWait
instance allocated withmemAlloc
.static IOURingRegWait.Buffer
malloc
(int capacity) Returns a newIOURingRegWait.Buffer
instance allocated withmemAlloc
.static IOURingRegWait.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newIOURingRegWait.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingRegWait
malloc
(MemoryStack stack) Returns a newIOURingRegWait
instance allocated on the specifiedMemoryStack
.int
min_wait_usec
(int value) Sets the specified value to themin_wait_usec
field.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static int
nmin_wait_usec
(long struct) Unsafe version ofmin_wait_usec()
.static void
nmin_wait_usec
(long struct, int value) Unsafe version ofmin_wait_usec
.static IntBuffer
npad
(long struct) static int
npad
(long struct, int index) static void
npad
(long struct, int index, int value) static void
static LongBuffer
npad2
(long struct) static long
npad2
(long struct, int index) static void
npad2
(long struct, int index, long value) static void
npad2
(long struct, LongBuffer value) static long
nsigmask
(long struct) Unsafe version ofsigmask()
.static void
nsigmask
(long struct, long value) Unsafe version ofsigmask
.static int
nsigmask_sz
(long struct) Unsafe version ofsigmask_sz()
.static void
nsigmask_sz
(long struct, int value) Unsafe version ofsigmask_sz
.static KernelTimespec
nts
(long struct) Unsafe version ofts()
.static void
nts
(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.long
sigmask()
sigmask
(long value) Sets the specified value to thesigmask
field.int
sigmask_sz
(int value) Sets the specified value to thesigmask_sz
field.int
sizeof()
Returnssizeof(struct)
.ts()
ts
(Consumer<KernelTimespec> consumer) Passes thets
field to the specifiedConsumer
.ts
(KernelTimespec value) Copies the specifiedKernelTimespec
to thets
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. -
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 aIOURingRegWait
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<IOURingRegWait>
-
ts
- Returns:
- a
KernelTimespec
view of thets
field.
-
min_wait_usec
public int min_wait_usec()- Returns:
- the value of the
min_wait_usec
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
sigmask
public long sigmask()- Returns:
- the value of the
sigmask
field.
-
sigmask_sz
public int sigmask_sz()- Returns:
- the value of the
sigmask_sz
field.
-
ts
Copies the specifiedKernelTimespec
to thets
field. -
ts
Passes thets
field to the specifiedConsumer
. -
min_wait_usec
Sets the specified value to themin_wait_usec
field. -
flags
Sets the specified value to theflags
field. -
sigmask
Sets the specified value to thesigmask
field. -
sigmask_sz
Sets the specified value to thesigmask_sz
field. -
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 newIOURingRegWait
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOURingRegWait
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOURingRegWait
instance allocated withBufferUtils
. -
create
Returns a newIOURingRegWait
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingRegWait.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOURingRegWait.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOURingRegWait.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOURingRegWait.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingRegWait
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOURingRegWait
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOURingRegWait.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOURingRegWait.Buffer
instance allocated on the specifiedMemoryStack
and 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)
-