Package org.lwjgl.system.linux.liburing
Class IOUringRegionDesc
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct io_uring_region_desc {
__u64 user_addr;
__u64 size;
__u32 flags;
__u32 id;
__u64 mmap_offset;
__u64 __resv[4];
}
-
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 member offsets.static 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.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
ConstructorsConstructorDescriptionIOUringRegionDesc
(ByteBuffer container) Creates aIOUringRegionDesc
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOUringRegionDesc
calloc()
Returns a newIOUringRegionDesc
instance allocated withmemCalloc
.static IOUringRegionDesc.Buffer
calloc
(int capacity) Returns a newIOUringRegionDesc.Buffer
instance allocated withmemCalloc
.static IOUringRegionDesc.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newIOUringRegionDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOUringRegionDesc
calloc
(MemoryStack stack) Returns a newIOUringRegionDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOUringRegionDesc
create()
Returns a newIOUringRegionDesc
instance allocated withBufferUtils
.static IOUringRegionDesc.Buffer
create
(int capacity) Returns a newIOUringRegionDesc.Buffer
instance allocated withBufferUtils
.static IOUringRegionDesc
create
(long address) Returns a newIOUringRegionDesc
instance for the specified memory address.static IOUringRegionDesc.Buffer
create
(long address, int capacity) Create aIOUringRegionDesc.Buffer
instance at the specified memory.static @Nullable IOUringRegionDesc
createSafe
(long address) static @Nullable IOUringRegionDesc.Buffer
createSafe
(long address, int capacity) int
flags()
flags
(int value) Sets the specified value to theflags
field.int
id()
id
(int value) Sets the specified value to theid
field.static IOUringRegionDesc
malloc()
Returns a newIOUringRegionDesc
instance allocated withmemAlloc
.static IOUringRegionDesc.Buffer
malloc
(int capacity) Returns a newIOUringRegionDesc.Buffer
instance allocated withmemAlloc
.static IOUringRegionDesc.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newIOUringRegionDesc.Buffer
instance allocated on the specifiedMemoryStack
.static IOUringRegionDesc
malloc
(MemoryStack stack) Returns a newIOUringRegionDesc
instance allocated on the specifiedMemoryStack
.long
mmap_offset
(long value) Sets the specified value to themmap_offset
field.static LongBuffer
n__resv
(long struct) static long
n__resv
(long struct, int index) static void
n__resv
(long struct, int index, long value) static void
n__resv
(long struct, LongBuffer value) static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static int
nid
(long struct) Unsafe version ofid()
.static void
nid
(long struct, int value) Unsafe version ofid
.static long
nmmap_offset
(long struct) Unsafe version ofmmap_offset()
.static void
nmmap_offset
(long struct, long value) Unsafe version ofmmap_offset
.static long
nsize
(long struct) Unsafe version ofsize()
.static void
nsize
(long struct, long value) Unsafe version ofsize
.static long
nuser_addr
(long struct) Unsafe version ofuser_addr()
.static void
nuser_addr
(long struct, long value) Unsafe version ofuser_addr
.set
(long user_addr, long size, int flags, int id, long mmap_offset) Initializes this struct with the specified values.set
(IOUringRegionDesc src) Copies the specified struct data to this struct.long
size()
size
(long value) Sets the specified value to thesize
field.int
sizeof()
Returnssizeof(struct)
.long
user_addr
(long value) Sets the specified value to theuser_addr
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. -
USER_ADDR
public static final int USER_ADDRThe struct member offsets. -
SIZE
public static final int SIZEThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
ID
public static final int IDThe struct member offsets. -
MMAP_OFFSET
public static final int MMAP_OFFSETThe struct member offsets. -
__RESV
public static final int __RESVThe struct member offsets.
-
-
Constructor Details
-
IOUringRegionDesc
Creates aIOUringRegionDesc
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<IOUringRegionDesc>
-
user_addr
public long user_addr()- Returns:
- the value of the
user_addr
field.
-
size
public long size()- Returns:
- the value of the
size
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
id
public int id()- Returns:
- the value of the
id
field.
-
mmap_offset
public long mmap_offset()- Returns:
- the value of the
mmap_offset
field.
-
user_addr
Sets the specified value to theuser_addr
field. -
size
Sets the specified value to thesize
field. -
flags
Sets the specified value to theflags
field. -
id
Sets the specified value to theid
field. -
mmap_offset
Sets the specified value to themmap_offset
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 newIOUringRegionDesc
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOUringRegionDesc
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOUringRegionDesc
instance allocated withBufferUtils
. -
create
Returns a newIOUringRegionDesc
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOUringRegionDesc.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOUringRegionDesc.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOUringRegionDesc.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOUringRegionDesc.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOUringRegionDesc
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOUringRegionDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOUringRegionDesc.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOUringRegionDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nuser_addr
public static long nuser_addr(long struct) Unsafe version ofuser_addr()
. -
nsize
public static long nsize(long struct) Unsafe version ofsize()
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
nid
public static int nid(long struct) Unsafe version ofid()
. -
nmmap_offset
public static long nmmap_offset(long struct) Unsafe version ofmmap_offset()
. -
n__resv
-
n__resv
public static long n__resv(long struct, int index) -
nuser_addr
public static void nuser_addr(long struct, long value) Unsafe version ofuser_addr
. -
nsize
public static void nsize(long struct, long value) Unsafe version ofsize
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
. -
nid
public static void nid(long struct, int value) Unsafe version ofid
. -
nmmap_offset
public static void nmmap_offset(long struct, long value) Unsafe version ofmmap_offset
. -
n__resv
-
n__resv
public static void n__resv(long struct, int index, long value)
-