Class IOURingAttrPI

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

@NativeType("struct io_uring_attr_pi") public class IOURingAttrPI extends Struct<IOURingAttrPI> implements NativeResource
struct io_uring_attr_pi {
    __u16 flags;
    __u16 app_tag;
    __u32 len;
    __u64 addr;
    __u64 seed;
    __u64 rsvd;
}
  • Field Details

    • SIZEOF

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

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

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

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

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

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

      public static final int SEED
      The struct member offsets.
    • RSVD

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

    • IOURingAttrPI

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

      @NativeType("__u16") public short flags()
      Returns:
      the value of the flags field.
    • app_tag

      @NativeType("__u16") public short app_tag()
      Returns:
      the value of the app_tag field.
    • len

      @NativeType("__u32") public int len()
      Returns:
      the value of the len field.
    • addr

      @NativeType("__u64") public long addr()
      Returns:
      the value of the addr field.
    • seed

      @NativeType("__u64") public long seed()
      Returns:
      the value of the seed field.
    • rsvd

      @NativeType("__u64") public long rsvd()
      Returns:
      the value of the rsvd field.
    • flags

      public IOURingAttrPI flags(@NativeType("__u16") short value)
      Sets the specified value to the flags field.
    • app_tag

      public IOURingAttrPI app_tag(@NativeType("__u16") short value)
      Sets the specified value to the app_tag field.
    • len

      public IOURingAttrPI len(@NativeType("__u32") int value)
      Sets the specified value to the len field.
    • addr

      public IOURingAttrPI addr(@NativeType("__u64") long value)
      Sets the specified value to the addr field.
    • seed

      public IOURingAttrPI seed(@NativeType("__u64") long value)
      Sets the specified value to the seed field.
    • rsvd

      public IOURingAttrPI rsvd(@NativeType("__u64") long value)
      Sets the specified value to the rsvd field.
    • set

      public IOURingAttrPI set(short flags, short app_tag, int len, long addr, long seed, long rsvd)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static short napp_tag(long struct)
      Unsafe version of app_tag().
    • nlen

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

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

      public static long nseed(long struct)
      Unsafe version of seed().
    • nrsvd

      public static long nrsvd(long struct)
      Unsafe version of rsvd().
    • nflags

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

      public static void napp_tag(long struct, short value)
      Unsafe version of app_tag.
    • nlen

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

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

      public static void nseed(long struct, long value)
      Unsafe version of seed.
    • nrsvd

      public static void nrsvd(long struct, long value)
      Unsafe version of rsvd.