Package org.lwjgl.system.linux.liburing
Class IOURingZCRXAreaReg
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct io_uring_zcrx_area_reg {
__u64 addr;
__u64 len;
__u64 rq_area_token;
__u32 flags;
__u32 dmabuf_fd;
__u64 __resv2[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 member offsets.static 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionIOURingZCRXAreaReg(ByteBuffer container) Creates aIOURingZCRXAreaReginstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongaddr()addr(long value) Sets the specified value to theaddrfield.static IOURingZCRXAreaRegcalloc()Returns a newIOURingZCRXAreaReginstance allocated withmemCalloc.static IOURingZCRXAreaReg.Buffercalloc(int capacity) Returns a newIOURingZCRXAreaReg.Bufferinstance allocated withmemCalloc.static IOURingZCRXAreaReg.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingZCRXAreaReg.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingZCRXAreaRegcalloc(MemoryStack stack) Returns a newIOURingZCRXAreaReginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingZCRXAreaRegcreate()Returns a newIOURingZCRXAreaReginstance allocated withBufferUtils.static IOURingZCRXAreaReg.Buffercreate(int capacity) Returns a newIOURingZCRXAreaReg.Bufferinstance allocated withBufferUtils.static IOURingZCRXAreaRegcreate(long address) Returns a newIOURingZCRXAreaReginstance for the specified memory address.static IOURingZCRXAreaReg.Buffercreate(long address, int capacity) Create aIOURingZCRXAreaReg.Bufferinstance at the specified memory.static @Nullable IOURingZCRXAreaRegcreateSafe(long address) static @Nullable IOURingZCRXAreaReg.BuffercreateSafe(long address, int capacity) intdmabuf_fd(int value) Sets the specified value to thedmabuf_fdfield.intflags()flags(int value) Sets the specified value to theflagsfield.longlen()len(long value) Sets the specified value to thelenfield.static IOURingZCRXAreaRegmalloc()Returns a newIOURingZCRXAreaReginstance allocated withmemAlloc.static IOURingZCRXAreaReg.Buffermalloc(int capacity) Returns a newIOURingZCRXAreaReg.Bufferinstance allocated withmemAlloc.static IOURingZCRXAreaReg.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURingZCRXAreaReg.Bufferinstance allocated on the specifiedMemoryStack.static IOURingZCRXAreaRegmalloc(MemoryStack stack) Returns a newIOURingZCRXAreaReginstance allocated on the specifiedMemoryStack.static LongBuffern__resv2(long struct) static longn__resv2(long struct, int index) static voidn__resv2(long struct, int index, long value) static voidn__resv2(long struct, LongBuffer value) static longnaddr(long struct) Unsafe version ofaddr().static voidnaddr(long struct, long value) Unsafe version ofaddr.static intndmabuf_fd(long struct) Unsafe version ofdmabuf_fd().static voidndmabuf_fd(long struct, int value) Unsafe version ofdmabuf_fd.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static longnlen(long struct) Unsafe version oflen().static voidnlen(long struct, long value) Unsafe version oflen.static longnrq_area_token(long struct) Unsafe version ofrq_area_token().static voidnrq_area_token(long struct, long value) Unsafe version ofrq_area_token.longrq_area_token(long value) Sets the specified value to therq_area_tokenfield.set(long addr, long len, long rq_area_token, int flags, int dmabuf_fd) Initializes this struct with the specified values.set(IOURingZCRXAreaReg src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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. -
ADDR
public static final int ADDRThe struct member offsets. -
LEN
public static final int LENThe struct member offsets. -
RQ_AREA_TOKEN
public static final int RQ_AREA_TOKENThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
DMABUF_FD
public static final int DMABUF_FDThe struct member offsets. -
__RESV2
public static final int __RESV2The struct member offsets.
-
-
Constructor Details
-
IOURingZCRXAreaReg
Creates aIOURingZCRXAreaReginstance 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<IOURingZCRXAreaReg>
-
addr
public long addr()- Returns:
- the value of the
addrfield.
-
len
public long len()- Returns:
- the value of the
lenfield.
-
rq_area_token
public long rq_area_token()- Returns:
- the value of the
rq_area_tokenfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
dmabuf_fd
public int dmabuf_fd()- Returns:
- the value of the
dmabuf_fdfield.
-
addr
Sets the specified value to theaddrfield. -
len
Sets the specified value to thelenfield. -
rq_area_token
Sets the specified value to therq_area_tokenfield. -
flags
Sets the specified value to theflagsfield. -
dmabuf_fd
Sets the specified value to thedmabuf_fdfield. -
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 newIOURingZCRXAreaReginstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingZCRXAreaReginstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingZCRXAreaReginstance allocated withBufferUtils. -
create
Returns a newIOURingZCRXAreaReginstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingZCRXAreaReg.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingZCRXAreaReg.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingZCRXAreaReg.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingZCRXAreaReg.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingZCRXAreaReginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingZCRXAreaReginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingZCRXAreaReg.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingZCRXAreaReg.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
naddr
public static long naddr(long struct) Unsafe version ofaddr(). -
nlen
public static long nlen(long struct) Unsafe version oflen(). -
nrq_area_token
public static long nrq_area_token(long struct) Unsafe version ofrq_area_token(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
ndmabuf_fd
public static int ndmabuf_fd(long struct) Unsafe version ofdmabuf_fd(). -
n__resv2
-
n__resv2
public static long n__resv2(long struct, int index) -
naddr
public static void naddr(long struct, long value) Unsafe version ofaddr. -
nlen
public static void nlen(long struct, long value) Unsafe version oflen. -
nrq_area_token
public static void nrq_area_token(long struct, long value) Unsafe version ofrq_area_token. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
ndmabuf_fd
public static void ndmabuf_fd(long struct, int value) Unsafe version ofdmabuf_fd. -
n__resv2
-
n__resv2
public static void n__resv2(long struct, int index, long value)
-