Class IOURingZCRXRQ

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class IOURingZCRXRQ extends Struct<IOURingZCRXRQ> implements NativeResource

 struct io_uring_zcrx_rq {
     __u32 * khead;
     __u32 * ktail;
     __u32 rq_tail;
     unsigned ring_entries;
     {@link IOURingZCRXRQE struct io_uring_zcrx_rqe} * rqes;
     void * ring_ptr;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int KHEAD
      The struct member offsets.
    • KTAIL

      public static final int KTAIL
      The struct member offsets.
    • RQ_TAIL

      public static final int RQ_TAIL
      The struct member offsets.
    • RING_ENTRIES

      public static final int RING_ENTRIES
      The struct member offsets.
    • RQES

      public static final int RQES
      The struct member offsets.
    • RING_PTR

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

    • IOURingZCRXRQ

      public IOURingZCRXRQ(ByteBuffer container)
      Creates a IOURingZCRXRQ 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<IOURingZCRXRQ>
    • khead

      public IntBuffer khead(int capacity)
      Returns:
      a IntBuffer view of the data pointed to by the khead field.
    • ktail

      public IntBuffer ktail(int capacity)
      Returns:
      a IntBuffer view of the data pointed to by the ktail field.
    • rq_tail

      public int rq_tail()
      Returns:
      the value of the rq_tail field.
    • ring_entries

      public int ring_entries()
      Returns:
      the value of the ring_entries field.
    • rqes

      public IOURingZCRXRQE rqes()
      Returns:
      a IOURingZCRXRQE view of the struct pointed to by the rqes field.
    • ring_ptr

      public long ring_ptr()
      Returns:
      the value of the ring_ptr field.
    • khead

      public IOURingZCRXRQ khead(IntBuffer value)
      Sets the address of the specified IntBuffer to the khead field.
    • ktail

      public IOURingZCRXRQ ktail(IntBuffer value)
      Sets the address of the specified IntBuffer to the ktail field.
    • rq_tail

      public IOURingZCRXRQ rq_tail(int value)
      Sets the specified value to the rq_tail field.
    • ring_entries

      public IOURingZCRXRQ ring_entries(int value)
      Sets the specified value to the ring_entries field.
    • rqes

      public IOURingZCRXRQ rqes(IOURingZCRXRQE value)
      Sets the address of the specified IOURingZCRXRQE to the rqes field.
    • ring_ptr

      public IOURingZCRXRQ ring_ptr(long value)
      Sets the specified value to the ring_ptr field.
    • set

      public IOURingZCRXRQ set(IntBuffer khead, IntBuffer ktail, int rq_tail, int ring_entries, IOURingZCRXRQE rqes, long ring_ptr)
      Initializes this struct with the specified values.
    • set

      public IOURingZCRXRQ set(IOURingZCRXRQ src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static IOURingZCRXRQ.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new IOURingZCRXRQ.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
    • nkhead

      public static IntBuffer nkhead(long struct, int capacity)
      Unsafe version of khead.
    • nktail

      public static IntBuffer nktail(long struct, int capacity)
      Unsafe version of ktail.
    • nrq_tail

      public static int nrq_tail(long struct)
      Unsafe version of rq_tail().
    • nring_entries

      public static int nring_entries(long struct)
      Unsafe version of ring_entries().
    • nrqes

      public static IOURingZCRXRQE nrqes(long struct)
      Unsafe version of rqes().
    • nring_ptr

      public static long nring_ptr(long struct)
      Unsafe version of ring_ptr().
    • nkhead

      public static void nkhead(long struct, IntBuffer value)
      Unsafe version of khead.
    • nktail

      public static void nktail(long struct, IntBuffer value)
      Unsafe version of ktail.
    • nrq_tail

      public static void nrq_tail(long struct, int value)
      Unsafe version of rq_tail.
    • nring_entries

      public static void nring_entries(long struct, int value)
      Unsafe version of ring_entries.
    • nrqes

      public static void nrqes(long struct, IOURingZCRXRQE value)
      Unsafe version of rqes.
    • nring_ptr

      public static void nring_ptr(long struct, long value)
      Unsafe version of ring_ptr.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate