Class IOURingCQ

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<IOURingCQ>
org.lwjgl.system.linux.liburing.IOURingCQ
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class IOURingCQ extends org.lwjgl.system.Struct<IOURingCQ> implements org.lwjgl.system.NativeResource

Layout


 struct io_uring_cq {
     unsigned * khead;
     unsigned * ktail;
     unsigned * kring_mask(int);
     unsigned * kring_entries(int);
     unsigned * kflags;
     unsigned * koverflow;
     struct io_uring_cqe * cqes;
     size_t ring_sz;
     void * ring_ptr;
     unsigned ring_mask;
     unsigned ring_entries;
     unsigned int pad[2];
 }
  • 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.
    • KRING_MASK

      public static final int KRING_MASK
      The struct member offsets.
    • KRING_ENTRIES

      public static final int KRING_ENTRIES
      The struct member offsets.
    • KFLAGS

      public static final int KFLAGS
      The struct member offsets.
    • KOVERFLOW

      public static final int KOVERFLOW
      The struct member offsets.
    • CQES

      public static final int CQES
      The struct member offsets.
    • RING_SZ

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

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

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

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

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

    • IOURingCQ

      public IOURingCQ(ByteBuffer container)
      Creates a IOURingCQ 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<IOURingCQ>
    • khead

      public IntBuffer khead(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      a IntBuffer view of the data pointed to by the khead field.
    • ktail

      public IntBuffer ktail(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      a IntBuffer view of the data pointed to by the ktail field.
    • kring_mask

      public IntBuffer kring_mask(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      Deprecated: use ring_mask instead of *kring_mask
    • kring_entries

      public IntBuffer kring_entries(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      Deprecated: use ring_entries instead of *kring_entries
    • kflags

      public IntBuffer kflags(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      a IntBuffer view of the data pointed to by the kflags field.
    • koverflow

      public IntBuffer koverflow(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      a IntBuffer view of the data pointed to by the koverflow field.
    • cqes

      public IOURingCQE cqes()
      Returns:
      a IOURingCQE view of the struct pointed to by the cqes field.
    • ring_sz

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

      public ByteBuffer ring_ptr()
      Returns:
      a ByteBuffer view of the data pointed to by the ring_ptr field.
    • ring_mask

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

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

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

      public IOURingCQ ktail(IntBuffer value)
      Sets the address of the specified IntBuffer to the ktail field.
    • kring_mask

      public IOURingCQ kring_mask(IntBuffer value)
      Sets the address of the specified IntBuffer to the kring_mask(int) field.
    • kring_entries

      public IOURingCQ kring_entries(IntBuffer value)
      Sets the address of the specified IntBuffer to the kring_entries(int) field.
    • kflags

      public IOURingCQ kflags(IntBuffer value)
      Sets the address of the specified IntBuffer to the kflags field.
    • koverflow

      public IOURingCQ koverflow(IntBuffer value)
      Sets the address of the specified IntBuffer to the koverflow field.
    • cqes

      public IOURingCQ cqes(IOURingCQE value)
      Sets the address of the specified IOURingCQE to the cqes field.
    • ring_ptr

      public IOURingCQ ring_ptr(ByteBuffer value)
      Sets the address of the specified ByteBuffer to the ring_ptr field.
    • ring_mask

      public IOURingCQ ring_mask(int value)
      Sets the specified value to the ring_mask field.
    • ring_entries

      public IOURingCQ ring_entries(int value)
      Sets the specified value to the ring_entries field.
    • set

      public IOURingCQ set(IntBuffer khead, IntBuffer ktail, IntBuffer kring_mask, IntBuffer kring_entries, IntBuffer kflags, IntBuffer koverflow, IOURingCQE cqes, ByteBuffer ring_ptr, int ring_mask, int ring_entries)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static IOURingCQ.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new IOURingCQ.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.
    • nkring_mask

      public static IntBuffer nkring_mask(long struct, int capacity)
      Unsafe version of kring_mask.
    • nkring_entries

      public static IntBuffer nkring_entries(long struct, int capacity)
      Unsafe version of kring_entries.
    • nkflags

      public static IntBuffer nkflags(long struct, int capacity)
      Unsafe version of kflags.
    • nkoverflow

      public static IntBuffer nkoverflow(long struct, int capacity)
      Unsafe version of koverflow.
    • ncqes

      public static IOURingCQE ncqes(long struct)
      Unsafe version of cqes().
    • nring_sz

      public static long nring_sz(long struct)
      Unsafe version of ring_sz().
    • nring_ptr

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

      public static int nring_mask(long struct)
      Unsafe version of ring_mask().
    • nring_entries

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

      public static IntBuffer npad(long struct)
    • npad

      public static int npad(long struct, int index)
    • 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.
    • nkring_mask

      public static void nkring_mask(long struct, IntBuffer value)
      Unsafe version of kring_mask.
    • nkring_entries

      public static void nkring_entries(long struct, IntBuffer value)
      Unsafe version of kring_entries.
    • nkflags

      public static void nkflags(long struct, IntBuffer value)
      Unsafe version of kflags.
    • nkoverflow

      public static void nkoverflow(long struct, IntBuffer value)
      Unsafe version of koverflow.
    • ncqes

      public static void ncqes(long struct, IOURingCQE value)
      Unsafe version of cqes.
    • nring_sz

      public static void nring_sz(long struct, long value)
      Sets the specified value to the ring_sz field of the specified struct.
    • nring_ptr

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

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

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

      public static void npad(long struct, IntBuffer value)
    • npad

      public static void npad(long struct, int index, int value)
    • validate

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