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;
}
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • NR_REQUEST_OPCODES

      public static final int NR_REQUEST_OPCODES
      The struct member offsets.
    • NR_REGISTER_OPCODES

      public static final int NR_REGISTER_OPCODES
      The struct member offsets.
    • FEATURE_FLAGS

      public static final int FEATURE_FLAGS
      The struct member offsets.
    • RING_SETUP_FLAGS

      public static final int RING_SETUP_FLAGS
      The struct member offsets.
    • ENTER_FLAGS

      public static final int ENTER_FLAGS
      The struct member offsets.
    • SQE_FLAGS

      public static final int SQE_FLAGS
      The struct member offsets.
  • Constructor Details

    • IOURingQueryOpcode

      public IOURingQueryOpcode(ByteBuffer container)
      Creates a IOURingQueryOpcode instance at the current position of the specified ByteBuffer 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
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<IOURingQueryOpcode>
    • nr_request_opcodes

      @NativeType("__u32") public int nr_request_opcodes()
      Returns:
      the value of the nr_request_opcodes field.
    • nr_register_opcodes

      @NativeType("__u32") public int nr_register_opcodes()
      Returns:
      the value of the nr_register_opcodes field.
    • feature_flags

      @NativeType("__u64") public long feature_flags()
      Returns:
      the value of the feature_flags field.
    • ring_setup_flags

      @NativeType("__u64") public long ring_setup_flags()
      Returns:
      the value of the ring_setup_flags field.
    • enter_flags

      @NativeType("__u64") public long enter_flags()
      Returns:
      the value of the enter_flags field.
    • sqe_flags

      @NativeType("__u64") public long sqe_flags()
      Returns:
      the value of the sqe_flags field.
    • nr_request_opcodes

      public IOURingQueryOpcode nr_request_opcodes(@NativeType("__u32") int value)
      Sets the specified value to the nr_request_opcodes field.
    • nr_register_opcodes

      public IOURingQueryOpcode nr_register_opcodes(@NativeType("__u32") int value)
      Sets the specified value to the nr_register_opcodes field.
    • feature_flags

      public IOURingQueryOpcode feature_flags(@NativeType("__u64") long value)
      Sets the specified value to the feature_flags field.
    • ring_setup_flags

      public IOURingQueryOpcode ring_setup_flags(@NativeType("__u64") long value)
      Sets the specified value to the ring_setup_flags field.
    • enter_flags

      public IOURingQueryOpcode enter_flags(@NativeType("__u64") long value)
      Sets the specified value to the enter_flags field.
    • sqe_flags

      public IOURingQueryOpcode sqe_flags(@NativeType("__u64") long value)
      Sets the specified value to the sqe_flags field.
    • 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

      public static IOURingQueryOpcode malloc()
      Returns a new IOURingQueryOpcode instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static IOURingQueryOpcode calloc()
      Returns a new IOURingQueryOpcode instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static IOURingQueryOpcode create()
      Returns a new IOURingQueryOpcode instance allocated with BufferUtils.
    • create

      public static IOURingQueryOpcode create(long address)
      Returns a new IOURingQueryOpcode instance for the specified memory address.
    • createSafe

      public static @Nullable IOURingQueryOpcode createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static IOURingQueryOpcode.Buffer malloc(int capacity)
      Returns a new IOURingQueryOpcode.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static IOURingQueryOpcode.Buffer calloc(int capacity)
      Returns a new IOURingQueryOpcode.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static IOURingQueryOpcode.Buffer create(int capacity)
      Returns a new IOURingQueryOpcode.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static IOURingQueryOpcode.Buffer create(long address, int capacity)
      Create a IOURingQueryOpcode.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable IOURingQueryOpcode.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static IOURingQueryOpcode malloc(MemoryStack stack)
      Returns a new IOURingQueryOpcode instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static IOURingQueryOpcode calloc(MemoryStack stack)
      Returns a new IOURingQueryOpcode instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static IOURingQueryOpcode.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new IOURingQueryOpcode.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static IOURingQueryOpcode.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new IOURingQueryOpcode.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nnr_request_opcodes

      public static int nnr_request_opcodes(long struct)
      Unsafe version of nr_request_opcodes().
    • nnr_register_opcodes

      public static int nnr_register_opcodes(long struct)
      Unsafe version of nr_register_opcodes().
    • nfeature_flags

      public static long nfeature_flags(long struct)
      Unsafe version of feature_flags().
    • nring_setup_flags

      public static long nring_setup_flags(long struct)
      Unsafe version of ring_setup_flags().
    • nenter_flags

      public static long nenter_flags(long struct)
      Unsafe version of enter_flags().
    • nsqe_flags

      public static long nsqe_flags(long struct)
      Unsafe version of sqe_flags().
    • nnr_request_opcodes

      public static void nnr_request_opcodes(long struct, int value)
      Unsafe version of nr_request_opcodes.
    • nnr_register_opcodes

      public static void nnr_register_opcodes(long struct, int value)
      Unsafe version of nr_register_opcodes.
    • nfeature_flags

      public static void nfeature_flags(long struct, long value)
      Unsafe version of feature_flags.
    • nring_setup_flags

      public static void nring_setup_flags(long struct, long value)
      Unsafe version of ring_setup_flags.
    • nenter_flags

      public static void nenter_flags(long struct, long value)
      Unsafe version of enter_flags.
    • nsqe_flags

      public static void nsqe_flags(long struct, long value)
      Unsafe version of sqe_flags.