Class IOURingSyncCancelReg

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

public class IOURingSyncCancelReg extends org.lwjgl.system.Struct<IOURingSyncCancelReg> implements org.lwjgl.system.NativeResource
Argument for REGISTER_SYNC_CANCEL.

Layout


 struct io_uring_sync_cancel_reg {
     __u64 addr;
     __s32 fd;
     __u32 flags;
     struct __kernel_timespec timeout;
     __u64 pad[4];
 }
  • Field Details

    • SIZEOF

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

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

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

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

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

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

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

    • IOURingSyncCancelReg

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

      public long addr()
      Returns:
      the value of the addr field.
    • fd

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

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

      public KernelTimespec timeout()
      Returns:
      a KernelTimespec view of the timeout field.
    • addr

      public IOURingSyncCancelReg addr(long value)
      Sets the specified value to the addr field.
    • fd

      public IOURingSyncCancelReg fd(int value)
      Sets the specified value to the fd field.
    • flags

      public IOURingSyncCancelReg flags(int value)
      Sets the specified value to the flags field.
    • timeout

      public IOURingSyncCancelReg timeout(KernelTimespec value)
      Copies the specified KernelTimespec to the timeout field.
    • timeout

      public IOURingSyncCancelReg timeout(Consumer<KernelTimespec> consumer)
      Passes the timeout field to the specified Consumer.
    • set

      public IOURingSyncCancelReg set(long addr, int fd, int flags, KernelTimespec timeout)
      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 IOURingSyncCancelReg malloc()
      Returns a new IOURingSyncCancelReg instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nfd(long struct)
      Unsafe version of fd().
    • nflags

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

      public static KernelTimespec ntimeout(long struct)
      Unsafe version of timeout().
    • npad

      public static LongBuffer npad(long struct)
    • npad

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

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

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

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

      public static void ntimeout(long struct, KernelTimespec value)
      Unsafe version of timeout.
    • npad

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

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