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

public Class IOURingSQ

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

Layout


struct io_uring_sq {
    unsigned * khead;
    unsigned * ktail;
    unsigned * kring_mask;
    unsigned * kring_entries;
    unsigned * kflags;
    unsigned * kdropped;
    unsigned * array;
    struct io_uring_sqe * sqes;
    unsigned sqe_head;
    unsigned sqe_tail;
    size_t ring_sz;
    void * ring_ptr;
    unsigned ring_mask;
    unsigned ring_entries;
    unsigned pad[2];
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
IOURingSQ.Buffer

An array of IOURingSQ structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
ARRAY

The struct member offsets.

public static final int
KDROPPED

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
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.

public static final int
SQE_HEAD

The struct member offsets.

public static final int
SQE_TAIL

The struct member offsets.

public static final int
SQES

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
IOURingSQ(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public IntBuffer

Returns:

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

public IOURingSQ
array(IntBuffer value)

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

public static IOURingSQ
calloc()

Returns a new IOURingSQ instance allocated with memCalloc.

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

Returns a new IOURingSQ.Buffer instance allocated with memCalloc.

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

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

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

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

protected IOURingSQ
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 IOURingSQ
create()

Returns a new IOURingSQ instance allocated with BufferUtils.

public static IOURingSQ
create(long address)

Returns a new IOURingSQ instance for the specified memory address.

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

Returns a new IOURingSQ.Buffer instance allocated with BufferUtils.

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

Create a IOURingSQ.Buffer instance at the specified memory.

public static IOURingSQ
createSafe(long address)

Like create, but returns null if address is NULL.

public static IOURingSQ.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 kdropped field.
kdropped
(int
the number of elements in the returned buffer
capacity
)

public IOURingSQ
kdropped(IntBuffer value)

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

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 IOURingSQ
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 IOURingSQ
khead(IntBuffer value)

Sets the address of the specified IntBuffer to the khead 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 IOURingSQ
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 IOURingSQ
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 IOURingSQ
ktail(IntBuffer value)

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

public static IOURingSQ
malloc()

Returns a new IOURingSQ instance allocated with memAlloc.

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

Returns a new IOURingSQ.Buffer instance allocated with memAlloc.

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

Returns a new IOURingSQ instance allocated on the specified MemoryStack.

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

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

public static IntBuffer
narray(long struct, int capacity)

Unsafe version of array.

public static void
narray(long struct, IntBuffer value)

Unsafe version of array.

public static IntBuffer
nkdropped(long struct, int capacity)

Unsafe version of kdropped.

public static void
nkdropped(long struct, IntBuffer value)

Unsafe version of kdropped.

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
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 static int
nsqe_head(long struct)

Unsafe version of sqe_head.

public static void
nsqe_head(long struct, int value)

Unsafe version of sqe_head.

public static int
nsqe_tail(long struct)

Unsafe version of sqe_tail.

public static void
nsqe_tail(long struct, int value)

Unsafe version of sqe_tail.

public static IOURingSQE
nsqes(long struct)

Unsafe version of sqes.

public static void
nsqes(long struct, IOURingSQE value)

Unsafe version of sqes.

public int

Returns:

the value of the ring_entries field.
ring_entries
()

public IOURingSQ
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 IOURingSQ
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 IOURingSQ
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 IOURingSQ
set(IntBuffer khead, IntBuffer ktail, IntBuffer kring_mask, IntBuffer kring_entries, IntBuffer kflags, IntBuffer kdropped, IntBuffer array, IOURingSQE sqes, int sqe_head, int sqe_tail, ByteBuffer ring_ptr, int ring_mask, int ring_entries)

Initializes this struct with the specified values.

public IOURingSQ

Returns:

this struct
set
(IOURingSQ
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 int

Returns:

the value of the sqe_head field.
sqe_head
()

public IOURingSQ
sqe_head(int value)

Sets the specified value to the sqe_head field.

public int

Returns:

the value of the sqe_tail field.
sqe_tail
()

public IOURingSQ
sqe_tail(int value)

Sets the specified value to the sqe_tail field.

public IOURingSQE

Returns:

a IOURingSQE view of the struct pointed to by the sqes field.
sqes
()

public IOURingSQ
sqes(IOURingSQE value)

Sets the address of the specified IOURingSQE to the sqes field.

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