Class IOURingQueryOpcode
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
@NativeType("struct io_uring_query_opcode")
public class IOURingQueryOpcode
extends Struct<IOURingQueryOpcode>
implements NativeResource
struct io_uring_query_opcode {
__u32 nr_request_opcodes;
__u32 nr_register_opcodes;
__u64 feature_flags;
__u64 ring_setup_flags;
__u64 enter_flags;
__u64 sqe_flags;
}-
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 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.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionIOURingQueryOpcode(ByteBuffer container) Creates aIOURingQueryOpcodeinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingQueryOpcodecalloc()Returns a newIOURingQueryOpcodeinstance allocated withmemCalloc.static IOURingQueryOpcode.Buffercalloc(int capacity) Returns a newIOURingQueryOpcode.Bufferinstance allocated withmemCalloc.static IOURingQueryOpcode.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingQueryOpcode.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingQueryOpcodecalloc(MemoryStack stack) Returns a newIOURingQueryOpcodeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingQueryOpcodecreate()Returns a newIOURingQueryOpcodeinstance allocated withBufferUtils.static IOURingQueryOpcode.Buffercreate(int capacity) Returns a newIOURingQueryOpcode.Bufferinstance allocated withBufferUtils.static IOURingQueryOpcodecreate(long address) Returns a newIOURingQueryOpcodeinstance for the specified memory address.static IOURingQueryOpcode.Buffercreate(long address, int capacity) Create aIOURingQueryOpcode.Bufferinstance at the specified memory.static @Nullable IOURingQueryOpcodecreateSafe(long address) static @Nullable IOURingQueryOpcode.BuffercreateSafe(long address, int capacity) longenter_flags(long value) Sets the specified value to theenter_flagsfield.longfeature_flags(long value) Sets the specified value to thefeature_flagsfield.static IOURingQueryOpcodemalloc()Returns a newIOURingQueryOpcodeinstance allocated withmemAlloc.static IOURingQueryOpcode.Buffermalloc(int capacity) Returns a newIOURingQueryOpcode.Bufferinstance allocated withmemAlloc.static IOURingQueryOpcode.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURingQueryOpcode.Bufferinstance allocated on the specifiedMemoryStack.static IOURingQueryOpcodemalloc(MemoryStack stack) Returns a newIOURingQueryOpcodeinstance allocated on the specifiedMemoryStack.static longnenter_flags(long struct) Unsafe version ofenter_flags().static voidnenter_flags(long struct, long value) Unsafe version ofenter_flags.static longnfeature_flags(long struct) Unsafe version offeature_flags().static voidnfeature_flags(long struct, long value) Unsafe version offeature_flags.static intnnr_register_opcodes(long struct) Unsafe version ofnr_register_opcodes().static voidnnr_register_opcodes(long struct, int value) Unsafe version ofnr_register_opcodes.static intnnr_request_opcodes(long struct) Unsafe version ofnr_request_opcodes().static voidnnr_request_opcodes(long struct, int value) Unsafe version ofnr_request_opcodes.intnr_register_opcodes(int value) Sets the specified value to thenr_register_opcodesfield.intnr_request_opcodes(int value) Sets the specified value to thenr_request_opcodesfield.static longnring_setup_flags(long struct) Unsafe version ofring_setup_flags().static voidnring_setup_flags(long struct, long value) Unsafe version ofring_setup_flags.static longnsqe_flags(long struct) Unsafe version ofsqe_flags().static voidnsqe_flags(long struct, long value) Unsafe version ofsqe_flags.longring_setup_flags(long value) Sets the specified value to thering_setup_flagsfield.set(int nr_request_opcodes, int nr_register_opcodes, long feature_flags, long ring_setup_flags, long enter_flags, long sqe_flags) Initializes this struct with the specified values.set(IOURingQueryOpcode src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).longsqe_flags(long value) Sets the specified value to thesqe_flagsfield.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. -
NR_REQUEST_OPCODES
public static final int NR_REQUEST_OPCODESThe struct member offsets. -
NR_REGISTER_OPCODES
public static final int NR_REGISTER_OPCODESThe struct member offsets. -
FEATURE_FLAGS
public static final int FEATURE_FLAGSThe struct member offsets. -
RING_SETUP_FLAGS
public static final int RING_SETUP_FLAGSThe struct member offsets. -
ENTER_FLAGS
public static final int ENTER_FLAGSThe struct member offsets. -
SQE_FLAGS
public static final int SQE_FLAGSThe struct member offsets.
-
-
Constructor Details
-
IOURingQueryOpcode
Creates aIOURingQueryOpcodeinstance 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<IOURingQueryOpcode>
-
nr_request_opcodes
- Returns:
- the value of the
nr_request_opcodesfield.
-
nr_register_opcodes
- Returns:
- the value of the
nr_register_opcodesfield.
-
feature_flags
- Returns:
- the value of the
feature_flagsfield.
-
ring_setup_flags
- Returns:
- the value of the
ring_setup_flagsfield.
-
enter_flags
- Returns:
- the value of the
enter_flagsfield.
-
sqe_flags
- Returns:
- the value of the
sqe_flagsfield.
-
nr_request_opcodes
Sets the specified value to thenr_request_opcodesfield. -
nr_register_opcodes
Sets the specified value to thenr_register_opcodesfield. -
feature_flags
Sets the specified value to thefeature_flagsfield. -
ring_setup_flags
Sets the specified value to thering_setup_flagsfield. -
enter_flags
Sets the specified value to theenter_flagsfield. -
sqe_flags
Sets the specified value to thesqe_flagsfield. -
set
public IOURingQueryOpcode set(int nr_request_opcodes, int nr_register_opcodes, long feature_flags, long ring_setup_flags, long enter_flags, long sqe_flags) 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 newIOURingQueryOpcodeinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingQueryOpcodeinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingQueryOpcodeinstance allocated withBufferUtils. -
create
Returns a newIOURingQueryOpcodeinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingQueryOpcode.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingQueryOpcode.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingQueryOpcode.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingQueryOpcode.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingQueryOpcodeinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingQueryOpcodeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingQueryOpcode.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingQueryOpcode.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nnr_request_opcodes
public static int nnr_request_opcodes(long struct) Unsafe version ofnr_request_opcodes(). -
nnr_register_opcodes
public static int nnr_register_opcodes(long struct) Unsafe version ofnr_register_opcodes(). -
nfeature_flags
public static long nfeature_flags(long struct) Unsafe version offeature_flags(). -
nring_setup_flags
public static long nring_setup_flags(long struct) Unsafe version ofring_setup_flags(). -
nenter_flags
public static long nenter_flags(long struct) Unsafe version ofenter_flags(). -
nsqe_flags
public static long nsqe_flags(long struct) Unsafe version ofsqe_flags(). -
nnr_request_opcodes
public static void nnr_request_opcodes(long struct, int value) Unsafe version ofnr_request_opcodes. -
nnr_register_opcodes
public static void nnr_register_opcodes(long struct, int value) Unsafe version ofnr_register_opcodes. -
nfeature_flags
public static void nfeature_flags(long struct, long value) Unsafe version offeature_flags. -
nring_setup_flags
public static void nring_setup_flags(long struct, long value) Unsafe version ofring_setup_flags. -
nenter_flags
public static void nenter_flags(long struct, long value) Unsafe version ofenter_flags. -
nsqe_flags
public static void nsqe_flags(long struct, long value) Unsafe version ofsqe_flags.
-