Class IOURingZCRXIfqReg

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class IOURingZCRXIfqReg extends Struct<IOURingZCRXIfqReg> implements NativeResource

 struct io_uring_zcrx_ifq_reg {
     __u32 if_idx;
     __u32 if_rxq;
     __u32 rq_entries;
     __u32 flags;
     __u64 area_ptr;
     __u64 region_ptr;
     {@link IOURingZCRXOffsets struct io_uring_zcrx_offsets} offsets;
     __u32 zcrx_id;
     __u32 __resv2;
     __u64 __resv[3];
 }
  • Field Details

    • SIZEOF

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

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

      public static final int IF_IDX
      The struct member offsets.
    • IF_RXQ

      public static final int IF_RXQ
      The struct member offsets.
    • RQ_ENTRIES

      public static final int RQ_ENTRIES
      The struct member offsets.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • AREA_PTR

      public static final int AREA_PTR
      The struct member offsets.
    • REGION_PTR

      public static final int REGION_PTR
      The struct member offsets.
    • OFFSETS

      public static final int OFFSETS
      The struct member offsets.
    • ZCRX_ID

      public static final int ZCRX_ID
      The struct member offsets.
    • __RESV2

      public static final int __RESV2
      The struct member offsets.
    • __RESV

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

    • IOURingZCRXIfqReg

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

      public int if_idx()
      Returns:
      the value of the if_idx field.
    • if_rxq

      public int if_rxq()
      Returns:
      the value of the if_rxq field.
    • rq_entries

      public int rq_entries()
      Returns:
      the value of the rq_entries field.
    • flags

      public int flags()
      Returns:
      the value of the flags field.
    • area_ptr

      public long area_ptr()
      Returns:
      the value of the area_ptr field.
    • region_ptr

      public long region_ptr()
      Returns:
      the value of the region_ptr field.
    • offsets

      public IOURingZCRXOffsets offsets()
      Returns:
      a IOURingZCRXOffsets view of the offsets field.
    • zcrx_id

      public int zcrx_id()
      Returns:
      the value of the zcrx_id field.
    • if_idx

      public IOURingZCRXIfqReg if_idx(int value)
      Sets the specified value to the if_idx field.
    • if_rxq

      public IOURingZCRXIfqReg if_rxq(int value)
      Sets the specified value to the if_rxq field.
    • rq_entries

      public IOURingZCRXIfqReg rq_entries(int value)
      Sets the specified value to the rq_entries field.
    • flags

      public IOURingZCRXIfqReg flags(int value)
      Sets the specified value to the flags field.
    • area_ptr

      public IOURingZCRXIfqReg area_ptr(long value)
      Sets the specified value to the area_ptr field.
    • region_ptr

      public IOURingZCRXIfqReg region_ptr(long value)
      Sets the specified value to the region_ptr field.
    • offsets

      public IOURingZCRXIfqReg offsets(IOURingZCRXOffsets value)
      Copies the specified IOURingZCRXOffsets to the offsets field.
    • offsets

      public IOURingZCRXIfqReg offsets(Consumer<IOURingZCRXOffsets> consumer)
      Passes the offsets field to the specified Consumer.
    • zcrx_id

      public IOURingZCRXIfqReg zcrx_id(int value)
      Sets the specified value to the zcrx_id field.
    • set

      public IOURingZCRXIfqReg set(int if_idx, int if_rxq, int rq_entries, int flags, long area_ptr, long region_ptr, IOURingZCRXOffsets offsets, int zcrx_id)
      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 IOURingZCRXIfqReg malloc()
      Returns a new IOURingZCRXIfqReg instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nif_idx(long struct)
      Unsafe version of if_idx().
    • nif_rxq

      public static int nif_rxq(long struct)
      Unsafe version of if_rxq().
    • nrq_entries

      public static int nrq_entries(long struct)
      Unsafe version of rq_entries().
    • nflags

      public static int nflags(long struct)
      Unsafe version of flags().
    • narea_ptr

      public static long narea_ptr(long struct)
      Unsafe version of area_ptr().
    • nregion_ptr

      public static long nregion_ptr(long struct)
      Unsafe version of region_ptr().
    • noffsets

      public static IOURingZCRXOffsets noffsets(long struct)
      Unsafe version of offsets().
    • nzcrx_id

      public static int nzcrx_id(long struct)
      Unsafe version of zcrx_id().
    • n__resv2

      public static int n__resv2(long struct)
    • n__resv

      public static LongBuffer n__resv(long struct)
    • n__resv

      public static long n__resv(long struct, int index)
    • nif_idx

      public static void nif_idx(long struct, int value)
      Unsafe version of if_idx.
    • nif_rxq

      public static void nif_rxq(long struct, int value)
      Unsafe version of if_rxq.
    • nrq_entries

      public static void nrq_entries(long struct, int value)
      Unsafe version of rq_entries.
    • nflags

      public static void nflags(long struct, int value)
      Unsafe version of flags.
    • narea_ptr

      public static void narea_ptr(long struct, long value)
      Unsafe version of area_ptr.
    • nregion_ptr

      public static void nregion_ptr(long struct, long value)
      Unsafe version of region_ptr.
    • noffsets

      public static void noffsets(long struct, IOURingZCRXOffsets value)
      Unsafe version of offsets.
    • nzcrx_id

      public static void nzcrx_id(long struct, int value)
      Unsafe version of zcrx_id.
    • n__resv2

      public static void n__resv2(long struct, int value)
    • n__resv

      public static void n__resv(long struct, LongBuffer value)
    • n__resv

      public static void n__resv(long struct, int index, long value)