Class IOURingProbeOp

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class IOURingProbeOp extends Struct<IOURingProbeOp> implements NativeResource

 struct io_uring_probe_op {
     __u8 op;
     __u8 resv;
     __u16 flags;
     __u32 resv2;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int OP
      The struct member offsets.
    • RESV

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

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

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

    • IOURingProbeOp

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

      public byte op()
      Returns:
      the value of the op field.
    • flags

      public short flags()
      Returns:
      the value of the flags field.
    • op

      public IOURingProbeOp op(byte value)
      Sets the specified value to the op field.
    • flags

      public IOURingProbeOp flags(short value)
      Sets the specified value to the flags field.
    • set

      public IOURingProbeOp set(byte op, short flags)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static byte nop(long struct)
      Unsafe version of op().
    • nresv

      public static byte nresv(long struct)
    • nflags

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

      public static int nresv2(long struct)
    • nop

      public static void nop(long struct, byte value)
      Unsafe version of op.
    • nresv

      public static void nresv(long struct, byte value)
    • nflags

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

      public static void nresv2(long struct, int value)