Class IOURingMemRegionReg

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class IOURingMemRegionReg extends Struct<IOURingMemRegionReg> implements NativeResource

 struct io_uring_mem_region_reg {
     __u64 region_uptr;
     __u64 flags;
     __u64 __resv[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.
    • REGION_UPTR

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

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

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

    • IOURingMemRegionReg

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

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

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

      public IOURingMemRegionReg region_uptr(long value)
      Sets the specified value to the region_uptr field.
    • flags

      public IOURingMemRegionReg flags(long value)
      Sets the specified value to the flags field.
    • set

      public IOURingMemRegionReg set(long region_uptr, long 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 IOURingMemRegionReg malloc()
      Returns a new IOURingMemRegionReg instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long nregion_uptr(long struct)
      Unsafe version of region_uptr().
    • nflags

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

      public static LongBuffer n__resv(long struct)
    • n__resv

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

      public static void nregion_uptr(long struct, long value)
      Unsafe version of region_uptr.
    • nflags

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

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

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