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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct member offsets.static 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.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
ConstructorsConstructorDescriptionIOUringRegionDesc(ByteBuffer container) Creates aIOUringRegionDescinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOUringRegionDesccalloc()Returns a newIOUringRegionDescinstance allocated withmemCalloc.static IOUringRegionDesc.Buffercalloc(int capacity) Returns a newIOUringRegionDesc.Bufferinstance allocated withmemCalloc.static IOUringRegionDesc.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOUringRegionDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOUringRegionDesccalloc(MemoryStack stack) Returns a newIOUringRegionDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOUringRegionDesccreate()Returns a newIOUringRegionDescinstance allocated withBufferUtils.static IOUringRegionDesc.Buffercreate(int capacity) Returns a newIOUringRegionDesc.Bufferinstance allocated withBufferUtils.static IOUringRegionDesccreate(long address) Returns a newIOUringRegionDescinstance for the specified memory address.static IOUringRegionDesc.Buffercreate(long address, int capacity) Create aIOUringRegionDesc.Bufferinstance at the specified memory.static @Nullable IOUringRegionDesccreateSafe(long address) static @Nullable IOUringRegionDesc.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.intid()id(int value) Sets the specified value to theidfield.static IOUringRegionDescmalloc()Returns a newIOUringRegionDescinstance allocated withmemAlloc.static IOUringRegionDesc.Buffermalloc(int capacity) Returns a newIOUringRegionDesc.Bufferinstance allocated withmemAlloc.static IOUringRegionDesc.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOUringRegionDesc.Bufferinstance allocated on the specifiedMemoryStack.static IOUringRegionDescmalloc(MemoryStack stack) Returns a newIOUringRegionDescinstance allocated on the specifiedMemoryStack.longmmap_offset(long value) Sets the specified value to themmap_offsetfield.static LongBuffern__resv(long struct) static longn__resv(long struct, int index) static voidn__resv(long struct, int index, long value) static voidn__resv(long struct, LongBuffer value) static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intnid(long struct) Unsafe version ofid().static voidnid(long struct, int value) Unsafe version ofid.static longnmmap_offset(long struct) Unsafe version ofmmap_offset().static voidnmmap_offset(long struct, long value) Unsafe version ofmmap_offset.static longnsize(long struct) Unsafe version ofsize().static voidnsize(long struct, long value) Unsafe version ofsize.static longnuser_addr(long struct) Unsafe version ofuser_addr().static voidnuser_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.longsize()size(long value) Sets the specified value to thesizefield.intsizeof()Returnssizeof(struct).longuser_addr(long value) Sets the specified value to theuser_addrfield.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. -
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 aIOUringRegionDescinstance 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<IOUringRegionDesc>
-
user_addr
public long user_addr()- Returns:
- the value of the
user_addrfield.
-
size
public long size()- Returns:
- the value of the
sizefield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
id
public int id()- Returns:
- the value of the
idfield.
-
mmap_offset
public long mmap_offset()- Returns:
- the value of the
mmap_offsetfield.
-
user_addr
Sets the specified value to theuser_addrfield. -
size
Sets the specified value to thesizefield. -
flags
Sets the specified value to theflagsfield. -
id
Sets the specified value to theidfield. -
mmap_offset
Sets the specified value to themmap_offsetfield. -
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 newIOUringRegionDescinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOUringRegionDescinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOUringRegionDescinstance allocated withBufferUtils. -
create
Returns a newIOUringRegionDescinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOUringRegionDesc.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOUringRegionDesc.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOUringRegionDesc.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOUringRegionDesc.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOUringRegionDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOUringRegionDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOUringRegionDesc.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOUringRegionDesc.Bufferinstance allocated on the specifiedMemoryStackand 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)
-