Class IOURingAttrPI
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
@NativeType("struct io_uring_attr_pi")
public class IOURingAttrPI
extends Struct<IOURingAttrPI>
implements NativeResource
struct io_uring_attr_pi {
__u16 flags;
__u16 app_tag;
__u32 len;
__u64 addr;
__u64 seed;
__u64 rsvd;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface 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 member offsets.static final intThe struct size in bytes.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionIOURingAttrPI(ByteBuffer container) Creates aIOURingAttrPIinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongaddr()addr(long value) Sets the specified value to theaddrfield.shortapp_tag()app_tag(short value) Sets the specified value to theapp_tagfield.static IOURingAttrPIcalloc()Returns a newIOURingAttrPIinstance allocated withmemCalloc.static IOURingAttrPI.Buffercalloc(int capacity) Returns a newIOURingAttrPI.Bufferinstance allocated withmemCalloc.static IOURingAttrPI.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingAttrPI.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingAttrPIcalloc(MemoryStack stack) Returns a newIOURingAttrPIinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingAttrPIcreate()Returns a newIOURingAttrPIinstance allocated withBufferUtils.static IOURingAttrPI.Buffercreate(int capacity) Returns a newIOURingAttrPI.Bufferinstance allocated withBufferUtils.static IOURingAttrPIcreate(long address) Returns a newIOURingAttrPIinstance for the specified memory address.static IOURingAttrPI.Buffercreate(long address, int capacity) Create aIOURingAttrPI.Bufferinstance at the specified memory.static @Nullable IOURingAttrPIcreateSafe(long address) static @Nullable IOURingAttrPI.BuffercreateSafe(long address, int capacity) shortflags()flags(short value) Sets the specified value to theflagsfield.intlen()len(int value) Sets the specified value to thelenfield.static IOURingAttrPImalloc()Returns a newIOURingAttrPIinstance allocated withmemAlloc.static IOURingAttrPI.Buffermalloc(int capacity) Returns a newIOURingAttrPI.Bufferinstance allocated withmemAlloc.static IOURingAttrPI.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURingAttrPI.Bufferinstance allocated on the specifiedMemoryStack.static IOURingAttrPImalloc(MemoryStack stack) Returns a newIOURingAttrPIinstance allocated on the specifiedMemoryStack.static longnaddr(long struct) Unsafe version ofaddr().static voidnaddr(long struct, long value) Unsafe version ofaddr.static shortnapp_tag(long struct) Unsafe version ofapp_tag().static voidnapp_tag(long struct, short value) Unsafe version ofapp_tag.static shortnflags(long struct) Unsafe version offlags().static voidnflags(long struct, short value) Unsafe version offlags.static intnlen(long struct) Unsafe version oflen().static voidnlen(long struct, int value) Unsafe version oflen.static longnrsvd(long struct) Unsafe version ofrsvd().static voidnrsvd(long struct, long value) Unsafe version ofrsvd.static longnseed(long struct) Unsafe version ofseed().static voidnseed(long struct, long value) Unsafe version ofseed.longrsvd()rsvd(long value) Sets the specified value to thersvdfield.longseed()seed(long value) Sets the specified value to theseedfield.set(short flags, short app_tag, int len, long addr, long seed, long rsvd) Initializes this struct with the specified values.set(IOURingAttrPI src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface 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. -
FLAGS
public static final int FLAGSThe struct member offsets. -
APP_TAG
public static final int APP_TAGThe struct member offsets. -
LEN
public static final int LENThe struct member offsets. -
ADDR
public static final int ADDRThe struct member offsets. -
SEED
public static final int SEEDThe struct member offsets. -
RSVD
public static final int RSVDThe struct member offsets.
-
-
Constructor Details
-
IOURingAttrPI
Creates aIOURingAttrPIinstance 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<IOURingAttrPI>
-
flags
- Returns:
- the value of the
flagsfield.
-
app_tag
- Returns:
- the value of the
app_tagfield.
-
len
- Returns:
- the value of the
lenfield.
-
addr
- Returns:
- the value of the
addrfield.
-
seed
- Returns:
- the value of the
seedfield.
-
rsvd
- Returns:
- the value of the
rsvdfield.
-
flags
Sets the specified value to theflagsfield. -
app_tag
Sets the specified value to theapp_tagfield. -
len
Sets the specified value to thelenfield. -
addr
Sets the specified value to theaddrfield. -
seed
Sets the specified value to theseedfield. -
rsvd
Sets the specified value to thersvdfield. -
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 newIOURingAttrPIinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingAttrPIinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingAttrPIinstance allocated withBufferUtils. -
create
Returns a newIOURingAttrPIinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingAttrPI.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingAttrPI.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingAttrPI.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingAttrPI.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingAttrPIinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingAttrPIinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingAttrPI.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingAttrPI.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nflags
public static short nflags(long struct) Unsafe version offlags(). -
napp_tag
public static short napp_tag(long struct) Unsafe version ofapp_tag(). -
nlen
public static int nlen(long struct) Unsafe version oflen(). -
naddr
public static long naddr(long struct) Unsafe version ofaddr(). -
nseed
public static long nseed(long struct) Unsafe version ofseed(). -
nrsvd
public static long nrsvd(long struct) Unsafe version ofrsvd(). -
nflags
public static void nflags(long struct, short value) Unsafe version offlags. -
napp_tag
public static void napp_tag(long struct, short value) Unsafe version ofapp_tag. -
nlen
public static void nlen(long struct, int value) Unsafe version oflen. -
naddr
public static void naddr(long struct, long value) Unsafe version ofaddr. -
nseed
public static void nseed(long struct, long value) Unsafe version ofseed. -
nrsvd
public static void nrsvd(long struct, long value) Unsafe version ofrsvd.
-