Top Description Inners Fields Constructors Methods
org.lwjgl.system.linux.liburing

public Class IOURingCQ

extends Struct<IOURingCQ>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct io_uring_cq
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Layout


struct io_uring_cq {
    unsigned * khead;
    unsigned * ktail;
    unsigned * kring_mask;
    unsigned * kring_entries;
    unsigned * kflags;
    unsigned * koverflow;
    struct io_uring_cqe * cqes;
    size_t ring_sz;
    void * ring_ptr;
    unsigned ring_mask;
    unsigned ring_entries;
    unsigned int pad[2];
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
IOURingCQ.Buffer

An array of IOURingCQ structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
CQES

The struct member offsets.

public static final int
KFLAGS

The struct member offsets.

public static final int
KHEAD

The struct member offsets.

public static final int
KOVERFLOW

The struct member offsets.

public static final int
KRING_ENTRIES

The struct member offsets.

public static final int
KRING_MASK

The struct member offsets.

public static final int
KTAIL

The struct member offsets.

public static final int
PAD

The struct member offsets.

public static final int
RING_ENTRIES

The struct member offsets.

public static final int
RING_MASK

The struct member offsets.

public static final int
RING_PTR

The struct member offsets.

public static final int
RING_SZ

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
IOURingCQ(long address, ByteBuffer container)

public
IOURingCQ(ByteBuffer container)

Creates a IOURingCQ instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static IOURingCQ
calloc()

Returns a new IOURingCQ instance allocated with memCalloc.

public static IOURingCQ.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new IOURingCQ.Buffer instance allocated with memCalloc.

public static IOURingCQ
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new IOURingCQ instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static IOURingCQ.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new IOURingCQ.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public IOURingCQE

Returns:

a IOURingCQE view of the struct pointed to by the cqes field.
cqes
()

public IOURingCQ
cqes(IOURingCQE value)

Sets the address of the specified IOURingCQE to the cqes field.

protected IOURingCQ
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static IOURingCQ
create()

Returns a new IOURingCQ instance allocated with BufferUtils.

public static IOURingCQ
create(long address)

Returns a new IOURingCQ instance for the specified memory address.

public static IOURingCQ.Buffer
create(int
the buffer capacity
capacity
)

Returns a new IOURingCQ.Buffer instance allocated with BufferUtils.

public static IOURingCQ.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a IOURingCQ.Buffer instance at the specified memory.

public static IOURingCQ
createSafe(long address)

Like create, but returns null if address is NULL.

public static IOURingCQ.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public IntBuffer

Returns:

a IntBuffer view of the data pointed to by the kflags field.
kflags
(int
the number of elements in the returned buffer
capacity
)

public IOURingCQ
kflags(IntBuffer value)

Sets the address of the specified IntBuffer to the kflags field.

public IntBuffer

Returns:

a IntBuffer view of the data pointed to by the khead field.
khead
(int
the number of elements in the returned buffer
capacity
)

public IOURingCQ
khead(IntBuffer value)

Sets the address of the specified IntBuffer to the khead field.

public IntBuffer

Returns:

a IntBuffer view of the data pointed to by the koverflow field.
koverflow
(int
the number of elements in the returned buffer
capacity
)

public IOURingCQ
koverflow(IntBuffer value)

Sets the address of the specified IntBuffer to the koverflow field.

public IntBuffer

Returns:

Deprecated: use ring_entries instead of *kring_entries
kring_entries
(int
the number of elements in the returned buffer
capacity
)

public IOURingCQ
kring_entries(IntBuffer value)

Sets the address of the specified IntBuffer to the kring_entries field.

public IntBuffer

Returns:

Deprecated: use ring_mask instead of *kring_mask
kring_mask
(int
the number of elements in the returned buffer
capacity
)

public IOURingCQ
kring_mask(IntBuffer value)

Sets the address of the specified IntBuffer to the kring_mask field.

public IntBuffer

Returns:

a IntBuffer view of the data pointed to by the ktail field.
ktail
(int
the number of elements in the returned buffer
capacity
)

public IOURingCQ
ktail(IntBuffer value)

Sets the address of the specified IntBuffer to the ktail field.

public static IOURingCQ
malloc()

Returns a new IOURingCQ instance allocated with memAlloc.

public static IOURingCQ.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new IOURingCQ.Buffer instance allocated with memAlloc.

public static IOURingCQ
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new IOURingCQ instance allocated on the specified MemoryStack.

public static IOURingCQ.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new IOURingCQ.Buffer instance allocated on the specified MemoryStack.

public static IOURingCQE
ncqes(long struct)

Unsafe version of cqes.

public static void
ncqes(long struct, IOURingCQE value)

Unsafe version of cqes.

public static IntBuffer
nkflags(long struct, int capacity)

Unsafe version of kflags.

public static void
nkflags(long struct, IntBuffer value)

Unsafe version of kflags.

public static IntBuffer
nkhead(long struct, int capacity)

Unsafe version of khead.

public static void
nkhead(long struct, IntBuffer value)

Unsafe version of khead.

public static IntBuffer
nkoverflow(long struct, int capacity)

Unsafe version of koverflow.

public static void
nkoverflow(long struct, IntBuffer value)

Unsafe version of koverflow.

public static IntBuffer
nkring_entries(long struct, int capacity)

Unsafe version of kring_entries.

public static void
nkring_entries(long struct, IntBuffer value)

Unsafe version of kring_entries.

public static IntBuffer
nkring_mask(long struct, int capacity)

Unsafe version of kring_mask.

public static void
nkring_mask(long struct, IntBuffer value)

Unsafe version of kring_mask.

public static IntBuffer
nktail(long struct, int capacity)

Unsafe version of ktail.

public static void
nktail(long struct, IntBuffer value)

Unsafe version of ktail.

public static IntBuffer
npad(long struct)

public static int
npad(long struct, int index)

public static void
npad(long struct, IntBuffer value)

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

public static int
nring_entries(long struct)

Unsafe version of ring_entries.

public static void
nring_entries(long struct, int value)

Unsafe version of ring_entries.

public static int
nring_mask(long struct)

Unsafe version of ring_mask.

public static void
nring_mask(long struct, int value)

Unsafe version of ring_mask.

public static ByteBuffer
nring_ptr(long struct)

Unsafe version of ring_ptr.

public static void
nring_ptr(long struct, ByteBuffer value)

Unsafe version of ring_ptr.

public static long
nring_sz(long struct)

Unsafe version of ring_sz.

public static void
nring_sz(long struct, long value)

Sets the specified value to the ring_sz field of the specified struct.

public int

Returns:

the value of the ring_entries field.
ring_entries
()

public IOURingCQ
ring_entries(int value)

Sets the specified value to the ring_entries field.

public int

Returns:

the value of the ring_mask field.
ring_mask
()

public IOURingCQ
ring_mask(int value)

Sets the specified value to the ring_mask field.

public ByteBuffer

Returns:

a ByteBuffer view of the data pointed to by the ring_ptr field.
ring_ptr
()

public IOURingCQ
ring_ptr(ByteBuffer value)

Sets the address of the specified ByteBuffer to the ring_ptr field.

public long

Returns:

the value of the ring_sz field.
ring_sz
()

public IOURingCQ
set(IntBuffer khead, IntBuffer ktail, IntBuffer kring_mask, IntBuffer kring_entries, IntBuffer kflags, IntBuffer koverflow, IOURingCQE cqes, ByteBuffer ring_ptr, int ring_mask, int ring_entries)

Initializes this struct with the specified values.

public IOURingCQ

Returns:

this struct
set
(IOURingCQ
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate