Class IOURingProbe

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<IOURingProbe>
org.lwjgl.system.linux.liburing.IOURingProbe
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class IOURingProbe extends org.lwjgl.system.Struct<IOURingProbe> implements org.lwjgl.system.NativeResource

Layout


 struct io_uring_probe {
     __u8 last_op;
     __u8 ops_len;
     __u16 resv;
     __u32 resv2[3];
     struct io_uring_probe_op ops[0];
 }
  • Field Details

    • SIZEOF

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

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

      public static final int LAST_OP
      The struct member offsets.
    • OPS_LEN

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

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

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

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

    • IOURingProbe

      public IOURingProbe(ByteBuffer container)
      Creates a IOURingProbe 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<IOURingProbe>
    • last_op

      public byte last_op()
      Returns:
      the value of the last_op field.
    • ops_len

      public byte ops_len()
      Returns:
      the value of the ops_len field.
    • resv

      public short resv()
      Returns:
      the value of the resv field.
    • ops

      public IOURingProbeOp.Buffer ops()
      Returns:
      a IOURingProbeOp.Buffer view of the ops field.
    • ops

      public IOURingProbeOp ops(int index)
      Returns:
      a IOURingProbeOp view of the struct at the specified index of the ops field.
    • last_op

      public IOURingProbe last_op(byte value)
      Sets the specified value to the last_op field.
    • ops_len

      public IOURingProbe ops_len(byte value)
      Sets the specified value to the ops_len field.
    • resv

      public IOURingProbe resv(short value)
      Sets the specified value to the resv field.
    • ops

      public IOURingProbe ops(IOURingProbeOp.Buffer value)
      Copies the specified IOURingProbeOp.Buffer to the ops field.
    • ops

      public IOURingProbe ops(int index, IOURingProbeOp value)
      Copies the specified IOURingProbeOp at the specified index of the ops field.
    • ops

      Passes the ops field to the specified Consumer.
    • ops

      public IOURingProbe ops(int index, Consumer<IOURingProbeOp> consumer)
      Passes the element at index of the ops field to the specified Consumer.
    • set

      public IOURingProbe set(byte last_op, byte ops_len, short resv, IOURingProbeOp.Buffer ops)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static IOURingProbe.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new IOURingProbe.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
    • nlast_op

      public static byte nlast_op(long struct)
      Unsafe version of last_op().
    • nops_len

      public static byte nops_len(long struct)
      Unsafe version of ops_len().
    • nresv

      public static short nresv(long struct)
      Unsafe version of resv().
    • nresv2

      public static IntBuffer nresv2(long struct)
    • nresv2

      public static int nresv2(long struct, int index)
    • nops

      public static IOURingProbeOp.Buffer nops(long struct)
      Unsafe version of ops().
    • nops

      public static IOURingProbeOp nops(long struct, int index)
      Unsafe version of ops.
    • nlast_op

      public static void nlast_op(long struct, byte value)
      Unsafe version of last_op.
    • nops_len

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

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

      public static void nresv2(long struct, IntBuffer value)
    • nresv2

      public static void nresv2(long struct, int index, int value)
    • nops

      public static void nops(long struct, IOURingProbeOp.Buffer value)
      Unsafe version of ops.
    • nops

      public static void nops(long struct, int index, IOURingProbeOp value)
      Unsafe version of ops.