Class IOURingRegWait

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class IOURingRegWait extends Struct<IOURingRegWait> implements NativeResource

 struct io_uring_reg_wait {
     {@link KernelTimespec struct __kernel_timespec} ts;
     __u32 min_wait_usec;
     __u32 flags;
     __u64 sigmask;
     __u32 sigmask_sz;
     __u32 pad[3];
     __u64 pad2[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.
    • TS

      public static final int TS
      The struct member offsets.
    • MIN_WAIT_USEC

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

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

      public static final int SIGMASK
      The struct member offsets.
    • SIGMASK_SZ

      public static final int SIGMASK_SZ
      The struct member offsets.
    • PAD

      public static final int PAD
      The struct member offsets.
    • PAD2

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

    • IOURingRegWait

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

      public KernelTimespec ts()
      Returns:
      a KernelTimespec view of the ts field.
    • min_wait_usec

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

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

      public long sigmask()
      Returns:
      the value of the sigmask field.
    • sigmask_sz

      public int sigmask_sz()
      Returns:
      the value of the sigmask_sz field.
    • ts

      public IOURingRegWait ts(KernelTimespec value)
      Copies the specified KernelTimespec to the ts field.
    • ts

      public IOURingRegWait ts(Consumer<KernelTimespec> consumer)
      Passes the ts field to the specified Consumer.
    • min_wait_usec

      public IOURingRegWait min_wait_usec(int value)
      Sets the specified value to the min_wait_usec field.
    • flags

      public IOURingRegWait flags(int value)
      Sets the specified value to the flags field.
    • sigmask

      public IOURingRegWait sigmask(long value)
      Sets the specified value to the sigmask field.
    • sigmask_sz

      public IOURingRegWait sigmask_sz(int value)
      Sets the specified value to the sigmask_sz field.
    • set

      public IOURingRegWait set(KernelTimespec ts, int min_wait_usec, int flags, long sigmask, int sigmask_sz)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static KernelTimespec nts(long struct)
      Unsafe version of ts().
    • nmin_wait_usec

      public static int nmin_wait_usec(long struct)
      Unsafe version of min_wait_usec().
    • nflags

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

      public static long nsigmask(long struct)
      Unsafe version of sigmask().
    • nsigmask_sz

      public static int nsigmask_sz(long struct)
      Unsafe version of sigmask_sz().
    • npad

      public static IntBuffer npad(long struct)
    • npad

      public static int npad(long struct, int index)
    • npad2

      public static LongBuffer npad2(long struct)
    • npad2

      public static long npad2(long struct, int index)
    • nts

      public static void nts(long struct, KernelTimespec value)
      Unsafe version of ts.
    • nmin_wait_usec

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

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

      public static void nsigmask(long struct, long value)
      Unsafe version of sigmask.
    • nsigmask_sz

      public static void nsigmask_sz(long struct, int value)
      Unsafe version of sigmask_sz.
    • npad

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

      public static void npad(long struct, int index, int value)
    • npad2

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

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