Class IOURingZCRXAreaReg

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class IOURingZCRXAreaReg extends Struct<IOURingZCRXAreaReg> implements NativeResource

 struct io_uring_zcrx_area_reg {
     __u64 addr;
     __u64 len;
     __u64 rq_area_token;
     __u32 flags;
     __u32 dmabuf_fd;
     __u64 __resv2[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.
    • ADDR

      public static final int ADDR
      The struct member offsets.
    • LEN

      public static final int LEN
      The struct member offsets.
    • RQ_AREA_TOKEN

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

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

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

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

    • IOURingZCRXAreaReg

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

      public long addr()
      Returns:
      the value of the addr field.
    • len

      public long len()
      Returns:
      the value of the len field.
    • rq_area_token

      public long rq_area_token()
      Returns:
      the value of the rq_area_token field.
    • flags

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

      public int dmabuf_fd()
      Returns:
      the value of the dmabuf_fd field.
    • addr

      public IOURingZCRXAreaReg addr(long value)
      Sets the specified value to the addr field.
    • len

      public IOURingZCRXAreaReg len(long value)
      Sets the specified value to the len field.
    • rq_area_token

      public IOURingZCRXAreaReg rq_area_token(long value)
      Sets the specified value to the rq_area_token field.
    • flags

      public IOURingZCRXAreaReg flags(int value)
      Sets the specified value to the flags field.
    • dmabuf_fd

      public IOURingZCRXAreaReg dmabuf_fd(int value)
      Sets the specified value to the dmabuf_fd field.
    • set

      public IOURingZCRXAreaReg set(long addr, long len, long rq_area_token, int flags, int dmabuf_fd)
      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 IOURingZCRXAreaReg malloc()
      Returns a new IOURingZCRXAreaReg instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long naddr(long struct)
      Unsafe version of addr().
    • nlen

      public static long nlen(long struct)
      Unsafe version of len().
    • nrq_area_token

      public static long nrq_area_token(long struct)
      Unsafe version of rq_area_token().
    • nflags

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

      public static int ndmabuf_fd(long struct)
      Unsafe version of dmabuf_fd().
    • n__resv2

      public static LongBuffer n__resv2(long struct)
    • n__resv2

      public static long n__resv2(long struct, int index)
    • naddr

      public static void naddr(long struct, long value)
      Unsafe version of addr.
    • nlen

      public static void nlen(long struct, long value)
      Unsafe version of len.
    • nrq_area_token

      public static void nrq_area_token(long struct, long value)
      Unsafe version of rq_area_token.
    • nflags

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

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

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

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