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

public Class IOURingProbe

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

Layout


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

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
IOURingProbe.Buffer

An array of IOURingProbe structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
LAST_OP

The struct member offsets.

public static final int
OPS

The struct member offsets.

public static final int
OPS_LEN

The struct member offsets.

public static final int
RESV

The struct member offsets.

public static final int
RESV2

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
IOURingProbe(long address, ByteBuffer container)

public
IOURingProbe(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static IOURingProbe
calloc()

Returns a new IOURingProbe instance allocated with memCalloc.

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

Returns a new IOURingProbe.Buffer instance allocated with memCalloc.

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

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

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

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

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

Returns a new IOURingProbe instance allocated with BufferUtils.

public static IOURingProbe
create(long address)

Returns a new IOURingProbe instance for the specified memory address.

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

Returns a new IOURingProbe.Buffer instance allocated with BufferUtils.

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

Create a IOURingProbe.Buffer instance at the specified memory.

public static IOURingProbe
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public byte

Returns:

the value of the last_op field.
last_op
()

public IOURingProbe
last_op(byte value)

Sets the specified value to the last_op field.

public static IOURingProbe
malloc()

Returns a new IOURingProbe instance allocated with memAlloc.

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

Returns a new IOURingProbe.Buffer instance allocated with memAlloc.

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

Returns a new IOURingProbe instance allocated on the specified MemoryStack.

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

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

public static byte
nlast_op(long struct)

Unsafe version of last_op.

public static void
nlast_op(long struct, byte value)

Unsafe version of last_op.

public static IOURingProbeOp.Buffer
nops(long struct)

Unsafe version of ops.

public static IOURingProbeOp
nops(long struct, int index)

Unsafe version of ops.

public static void
nops(long struct, IOURingProbeOp.Buffer value)

Unsafe version of ops.

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

Unsafe version of ops.

public static byte
nops_len(long struct)

Unsafe version of ops_len.

public static void
nops_len(long struct, byte value)

Unsafe version of ops_len.

public static short
nresv(long struct)

Unsafe version of resv.

public static void
nresv(long struct, short value)

Unsafe version of resv.

public static IntBuffer
nresv2(long struct)

public static int
nresv2(long struct, int index)

public static void
nresv2(long struct, IntBuffer value)

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

public IOURingProbeOp.Buffer

Returns:

a IOURingProbeOp.Buffer view of the ops field.
ops
()

public IOURingProbeOp

Returns:

a IOURingProbeOp view of the struct at the specified index of the ops field.
ops
(int index)

public IOURingProbe
ops(IOURingProbeOp.Buffer value)

Copies the specified IOURingProbeOp.Buffer to the ops field.

public IOURingProbe
ops(int index, IOURingProbeOp value)

Copies the specified IOURingProbeOp at the specified index of the ops field.

public IOURingProbe
ops(Consumer<IOURingProbeOp.Buffer> consumer)

Passes the ops field to the specified Consumer.

public IOURingProbe
ops(int index, Consumer<IOURingProbeOp> consumer)

Passes the element at index of the ops field to the specified Consumer.

public byte

Returns:

the value of the ops_len field.
ops_len
()

public IOURingProbe
ops_len(byte value)

Sets the specified value to the ops_len field.

public short

Returns:

the value of the resv field.
resv
()

public IOURingProbe
resv(short value)

Sets the specified value to the resv field.

public IOURingProbe
set(byte last_op, byte ops_len, short resv, IOURingProbeOp.Buffer ops)

Initializes this struct with the specified values.

public IOURingProbe

Returns:

this struct
set
(IOURingProbe
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).
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

LAST_OPback to summary
public static final int LAST_OP

The struct member offsets.

OPSback to summary
public static final int OPS

The struct member offsets.

OPS_LENback to summary
public static final int OPS_LEN

The struct member offsets.

RESVback to summary
public static final int RESV

The struct member offsets.

RESV2back to summary
public static final int RESV2

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

Constructor Detail

IOURingProbeback to summary
protected IOURingProbe(long address, ByteBuffer container)
IOURingProbeback to summary
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 Detail

callocback to summary
public static IOURingProbe calloc()

Returns a new IOURingProbe instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static IOURingProbe.Buffer calloc(int capacity)

Returns a new IOURingProbe.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static IOURingProbe calloc(MemoryStack stack)

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

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static IOURingProbe.Buffer calloc(int capacity, MemoryStack stack)

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

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

createback to summary
protected IOURingProbe create(long address, ByteBuffer container)

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

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static IOURingProbe create()

Returns a new IOURingProbe instance allocated with BufferUtils.

createback to summary
public static IOURingProbe create(long address)

Returns a new IOURingProbe instance for the specified memory address.

createback to summary
public static IOURingProbe.Buffer create(int capacity)

Returns a new IOURingProbe.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static IOURingProbe.Buffer create(long address, int capacity)

Create a IOURingProbe.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static IOURingProbe createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static IOURingProbe.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
last_opback to summary
public byte last_op()
Returns:byte

the value of the last_op field.

Annotations
@NativeType:__u8
last_opback to summary
public IOURingProbe last_op(byte value)

Sets the specified value to the last_op field.

mallocback to summary
public static IOURingProbe malloc()

Returns a new IOURingProbe instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static IOURingProbe.Buffer malloc(int capacity)

Returns a new IOURingProbe.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static IOURingProbe malloc(MemoryStack stack)

Returns a new IOURingProbe instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static IOURingProbe.Buffer malloc(int capacity, MemoryStack stack)

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

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

nlast_opback to summary
public static byte nlast_op(long struct)

Unsafe version of last_op.

nlast_opback to summary
public static void nlast_op(long struct, byte value)

Unsafe version of last_op.

nopsback to summary
public static IOURingProbeOp.Buffer nops(long struct)

Unsafe version of ops.

nopsback to summary
public static IOURingProbeOp nops(long struct, int index)

Unsafe version of ops.

nopsback to summary
public static void nops(long struct, IOURingProbeOp.Buffer value)

Unsafe version of ops.

nopsback to summary
public static void nops(long struct, int index, IOURingProbeOp value)

Unsafe version of ops.

nops_lenback to summary
public static byte nops_len(long struct)

Unsafe version of ops_len.

nops_lenback to summary
public static void nops_len(long struct, byte value)

Unsafe version of ops_len.

nresvback to summary
public static short nresv(long struct)

Unsafe version of resv.

nresvback to summary
public static void nresv(long struct, short value)

Unsafe version of resv.

nresv2back to summary
public static IntBuffer nresv2(long struct)
nresv2back to summary
public static int nresv2(long struct, int index)
nresv2back to summary
public static void nresv2(long struct, IntBuffer value)
nresv2back to summary
public static void nresv2(long struct, int index, int value)
opsback to summary
public IOURingProbeOp.Buffer ops()
Returns:IOURingProbeOp.Buffer

a IOURingProbeOp.Buffer view of the ops field.

Annotations
@NativeType:struct io_uring_probe_op[0]
opsback to summary
public IOURingProbeOp ops(int index)
Returns:IOURingProbeOp

a IOURingProbeOp view of the struct at the specified index of the ops field.

Annotations
@NativeType:struct io_uring_probe_op
opsback to summary
public IOURingProbe ops(IOURingProbeOp.Buffer value)

Copies the specified IOURingProbeOp.Buffer to the ops field.

opsback to summary
public IOURingProbe ops(int index, IOURingProbeOp value)

Copies the specified IOURingProbeOp at the specified index of the ops field.

opsback to summary
public IOURingProbe ops(Consumer<IOURingProbeOp.Buffer> consumer)

Passes the ops field to the specified Consumer.

opsback to summary
public IOURingProbe ops(int index, Consumer<IOURingProbeOp> consumer)

Passes the element at index of the ops field to the specified Consumer.

ops_lenback to summary
public byte ops_len()
Returns:byte

the value of the ops_len field.

Annotations
@NativeType:__u8
ops_lenback to summary
public IOURingProbe ops_len(byte value)

Sets the specified value to the ops_len field.

resvback to summary
public short resv()
Returns:short

the value of the resv field.

Annotations
@NativeType:__u16
resvback to summary
public IOURingProbe resv(short value)

Sets the specified value to the resv field.

setback to summary
public IOURingProbe set(byte last_op, byte ops_len, short resv, IOURingProbeOp.Buffer ops)

Initializes this struct with the specified values.

setback to summary
public IOURingProbe set(IOURingProbe src)

Copies the specified struct data to this struct.

Parameters
src:IOURingProbe

the source struct

Returns:IOURingProbe

this struct

sizeofback to summary
public int sizeof()

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

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
org.lwjgl.system.linux.liburing back to summary

public Class IOURingProbe.Buffer

extends StructBuffer<IOURingProbe, IOURingProbe.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of IOURingProbe structs.

Field Summary

Modifier and TypeField and Description
private static final IOURingProbe

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new IOURingProbe.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
protected IOURingProbe
public byte

Returns:

the value of the last_op field.
last_op
()

public IOURingProbe.Buffer
last_op(byte value)

Sets the specified value to the last_op field.

public IOURingProbeOp.Buffer

Returns:

a IOURingProbeOp.Buffer view of the ops field.
ops
()

public IOURingProbeOp

Returns:

a IOURingProbeOp view of the struct at the specified index of the ops field.
ops
(int index)

public IOURingProbe.Buffer
ops(IOURingProbeOp.Buffer value)

Copies the specified IOURingProbeOp.Buffer to the ops field.

public IOURingProbe.Buffer
ops(int index, IOURingProbeOp value)

Copies the specified IOURingProbeOp at the specified index of the ops field.

public IOURingProbe.Buffer
ops(Consumer<IOURingProbeOp.Buffer> consumer)

Passes the ops field to the specified Consumer.

public IOURingProbe.Buffer
ops(int index, Consumer<IOURingProbeOp> consumer)

Passes the element at index of the ops field to the specified Consumer.

public byte

Returns:

the value of the ops_len field.
ops_len
()

public IOURingProbe.Buffer
ops_len(byte value)

Sets the specified value to the ops_len field.

public short

Returns:

the value of the resv field.
resv
()

public IOURingProbe.Buffer
resv(short value)

Sets the specified value to the resv field.

protected IOURingProbe.Buffer
Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final IOURingProbe ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new IOURingProbe.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by IOURingProbe#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

getElementFactoryback to summary
protected IOURingProbe getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
last_opback to summary
public byte last_op()
Returns:byte

the value of the last_op field.

Annotations
@NativeType:__u8
last_opback to summary
public IOURingProbe.Buffer last_op(byte value)

Sets the specified value to the last_op field.

opsback to summary
public IOURingProbeOp.Buffer ops()
Returns:IOURingProbeOp.Buffer

a IOURingProbeOp.Buffer view of the ops field.

Annotations
@NativeType:struct io_uring_probe_op[0]
opsback to summary
public IOURingProbeOp ops(int index)
Returns:IOURingProbeOp

a IOURingProbeOp view of the struct at the specified index of the ops field.

Annotations
@NativeType:struct io_uring_probe_op
opsback to summary
public IOURingProbe.Buffer ops(IOURingProbeOp.Buffer value)

Copies the specified IOURingProbeOp.Buffer to the ops field.

opsback to summary
public IOURingProbe.Buffer ops(int index, IOURingProbeOp value)

Copies the specified IOURingProbeOp at the specified index of the ops field.

opsback to summary
public IOURingProbe.Buffer ops(Consumer<IOURingProbeOp.Buffer> consumer)

Passes the ops field to the specified Consumer.

opsback to summary
public IOURingProbe.Buffer ops(int index, Consumer<IOURingProbeOp> consumer)

Passes the element at index of the ops field to the specified Consumer.

ops_lenback to summary
public byte ops_len()
Returns:byte

the value of the ops_len field.

Annotations
@NativeType:__u8
ops_lenback to summary
public IOURingProbe.Buffer ops_len(byte value)

Sets the specified value to the ops_len field.

resvback to summary
public short resv()
Returns:short

the value of the resv field.

Annotations
@NativeType:__u16
resvback to summary
public IOURingProbe.Buffer resv(short value)

Sets the specified value to the resv field.

selfback to summary
protected IOURingProbe.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override