Package org.lwjgl.util.hwloc
Class hwloc_obj
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct hwloc_obj {
hwloc_obj_type_t type;
char * subtype;
unsigned os_index;
char * name;
hwloc_uint64_t total_memory;
{@link hwloc_obj_attr_u struct hwloc_obj_attr_u} * attr;
int depth;
unsigned logical_index;
{@link hwloc_obj struct hwloc_obj} * next_cousin;
{@link hwloc_obj struct hwloc_obj} * prev_cousin;
{@link hwloc_obj struct hwloc_obj} * parent;
unsigned sibling_rank;
{@link hwloc_obj struct hwloc_obj} * next_sibling;
{@link hwloc_obj struct hwloc_obj} * prev_sibling;
unsigned arity;
{@link hwloc_obj struct hwloc_obj} ** children;
{@link hwloc_obj struct hwloc_obj} * first_child;
{@link hwloc_obj struct hwloc_obj} * last_child;
int symmetric_subtree;
unsigned memory_arity;
{@link hwloc_obj struct hwloc_obj} * memory_first_child;
unsigned io_arity;
{@link hwloc_obj struct hwloc_obj} * io_first_child;
unsigned misc_arity;
{@link hwloc_obj struct hwloc_obj} * misc_first_child;
hwloc_cpuset_t cpuset;
hwloc_cpuset_t complete_cpuset;
hwloc_nodeset_t nodeset;
hwloc_nodeset_t complete_nodeset;
{@link hwloc_infos_s struct hwloc_infos_s} infos;
void * userdata;
hwloc_uint64_t gp_index;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionhwloc_obj
(ByteBuffer container) Creates ahwloc_obj
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
arity()
attr()
static hwloc_obj
calloc()
Returns a newhwloc_obj
instance allocated withmemCalloc
.static hwloc_obj.Buffer
calloc
(int capacity) Returns a newhwloc_obj.Buffer
instance allocated withmemCalloc
.static hwloc_obj.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newhwloc_obj.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static hwloc_obj
calloc
(MemoryStack stack) Returns a newhwloc_obj
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.@Nullable PointerBuffer
children()
long
long
long
cpuset()
static hwloc_obj
create()
Returns a newhwloc_obj
instance allocated withBufferUtils
.static hwloc_obj.Buffer
create
(int capacity) Returns a newhwloc_obj.Buffer
instance allocated withBufferUtils
.static hwloc_obj
create
(long address) Returns a newhwloc_obj
instance for the specified memory address.static hwloc_obj.Buffer
create
(long address, int capacity) Create ahwloc_obj.Buffer
instance at the specified memory.static @Nullable hwloc_obj
createSafe
(long address) static @Nullable hwloc_obj.Buffer
createSafe
(long address, int capacity) int
depth()
@Nullable hwloc_obj
long
gp_index()
infos()
int
io_arity()
@Nullable hwloc_obj
@Nullable hwloc_obj
int
static hwloc_obj
malloc()
Returns a newhwloc_obj
instance allocated withmemAlloc
.static hwloc_obj.Buffer
malloc
(int capacity) Returns a newhwloc_obj.Buffer
instance allocated withmemAlloc
.static hwloc_obj.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newhwloc_obj.Buffer
instance allocated on the specifiedMemoryStack
.static hwloc_obj
malloc
(MemoryStack stack) Returns a newhwloc_obj
instance allocated on the specifiedMemoryStack
.int
@Nullable hwloc_obj
int
@Nullable hwloc_obj
@Nullable ByteBuffer
name()
@Nullable String
static int
narity
(long struct) Unsafe version ofarity()
.static hwloc_obj_attr_u
nattr
(long struct) Unsafe version ofattr()
.static @Nullable PointerBuffer
nchildren
(long struct) Unsafe version ofchildren
.static long
ncomplete_cpuset
(long struct) Unsafe version ofcomplete_cpuset()
.static long
ncomplete_nodeset
(long struct) Unsafe version ofcomplete_nodeset()
.static long
ncpuset
(long struct) Unsafe version ofcpuset()
.static int
ndepth
(long struct) Unsafe version ofdepth()
.@Nullable hwloc_obj
@Nullable hwloc_obj
static @Nullable hwloc_obj
nfirst_child
(long struct) Unsafe version offirst_child()
.static long
ngp_index
(long struct) Unsafe version ofgp_index()
.static hwloc_infos_s
ninfos
(long struct) Unsafe version ofinfos()
.static int
nio_arity
(long struct) Unsafe version ofio_arity()
.static @Nullable hwloc_obj
nio_first_child
(long struct) Unsafe version ofio_first_child()
.static @Nullable hwloc_obj
nlast_child
(long struct) Unsafe version oflast_child()
.static int
nlogical_index
(long struct) Unsafe version oflogical_index()
.static int
nmemory_arity
(long struct) Unsafe version ofmemory_arity()
.static @Nullable hwloc_obj
nmemory_first_child
(long struct) Unsafe version ofmemory_first_child()
.static int
nmisc_arity
(long struct) Unsafe version ofmisc_arity()
.static @Nullable hwloc_obj
nmisc_first_child
(long struct) Unsafe version ofmisc_first_child()
.static @Nullable ByteBuffer
nname
(long struct) Unsafe version ofname()
.static @Nullable String
nnameString
(long struct) Unsafe version ofnameString()
.static @Nullable hwloc_obj
nnext_cousin
(long struct) Unsafe version ofnext_cousin()
.static @Nullable hwloc_obj
nnext_sibling
(long struct) Unsafe version ofnext_sibling()
.static long
nnodeset
(long struct) Unsafe version ofnodeset()
.long
nodeset()
static int
nos_index
(long struct) Unsafe version ofos_index()
.static @Nullable hwloc_obj
nparent
(long struct) Unsafe version ofparent()
.static @Nullable hwloc_obj
nprev_cousin
(long struct) Unsafe version ofprev_cousin()
.static @Nullable hwloc_obj
nprev_sibling
(long struct) Unsafe version ofprev_sibling()
.static int
nsibling_rank
(long struct) Unsafe version ofsibling_rank()
.static ByteBuffer
nsubtype
(long struct) Unsafe version ofsubtype()
.static String
nsubtypeString
(long struct) Unsafe version ofsubtypeString()
.static int
nsymmetric_subtree
(long struct) Unsafe version ofsymmetric_subtree()
.static long
ntotal_memory
(long struct) Unsafe version oftotal_memory()
.static int
ntype
(long struct) Unsafe version oftype()
.static long
nuserdata
(long struct) Unsafe version ofuserdata()
.static void
nuserdata
(long struct, long value) Unsafe version ofuserdata
.int
os_index()
@Nullable hwloc_obj
parent()
@Nullable hwloc_obj
@Nullable hwloc_obj
Copies the specified struct data to this struct.int
int
sizeof()
Returnssizeof(struct)
.subtype()
boolean
long
int
type()
long
userdata()
userdata
(long value) Sets the specified value to theuserdata
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
SUBTYPE
public static final int SUBTYPEThe struct member offsets. -
OS_INDEX
public static final int OS_INDEXThe struct member offsets. -
NAME
public static final int NAMEThe struct member offsets. -
TOTAL_MEMORY
public static final int TOTAL_MEMORYThe struct member offsets. -
ATTR
public static final int ATTRThe struct member offsets. -
DEPTH
public static final int DEPTHThe struct member offsets. -
LOGICAL_INDEX
public static final int LOGICAL_INDEXThe struct member offsets. -
NEXT_COUSIN
public static final int NEXT_COUSINThe struct member offsets. -
PREV_COUSIN
public static final int PREV_COUSINThe struct member offsets. -
PARENT
public static final int PARENTThe struct member offsets. -
SIBLING_RANK
public static final int SIBLING_RANKThe struct member offsets. -
NEXT_SIBLING
public static final int NEXT_SIBLINGThe struct member offsets. -
PREV_SIBLING
public static final int PREV_SIBLINGThe struct member offsets. -
ARITY
public static final int ARITYThe struct member offsets. -
CHILDREN
public static final int CHILDRENThe struct member offsets. -
FIRST_CHILD
public static final int FIRST_CHILDThe struct member offsets. -
LAST_CHILD
public static final int LAST_CHILDThe struct member offsets. -
SYMMETRIC_SUBTREE
public static final int SYMMETRIC_SUBTREEThe struct member offsets. -
MEMORY_ARITY
public static final int MEMORY_ARITYThe struct member offsets. -
MEMORY_FIRST_CHILD
public static final int MEMORY_FIRST_CHILDThe struct member offsets. -
IO_ARITY
public static final int IO_ARITYThe struct member offsets. -
IO_FIRST_CHILD
public static final int IO_FIRST_CHILDThe struct member offsets. -
MISC_ARITY
public static final int MISC_ARITYThe struct member offsets. -
MISC_FIRST_CHILD
public static final int MISC_FIRST_CHILDThe struct member offsets. -
CPUSET
public static final int CPUSETThe struct member offsets. -
COMPLETE_CPUSET
public static final int COMPLETE_CPUSETThe struct member offsets. -
NODESET
public static final int NODESETThe struct member offsets. -
COMPLETE_NODESET
public static final int COMPLETE_NODESETThe struct member offsets. -
INFOS
public static final int INFOSThe struct member offsets. -
USERDATA
public static final int USERDATAThe struct member offsets. -
GP_INDEX
public static final int GP_INDEXThe struct member offsets.
-
-
Constructor Details
-
hwloc_obj
Creates ahwloc_obj
instance at the current position of the specifiedByteBuffer
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
Returnssizeof(struct)
. -
type
public int type()- Returns:
- the value of the
type
field.
-
subtype
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thesubtype
field.
-
subtypeString
- Returns:
- the null-terminated string pointed to by the
subtype
field.
-
os_index
public int os_index()- Returns:
- the value of the
os_index
field.
-
name
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thename
field.
-
nameString
- Returns:
- the null-terminated string pointed to by the
name
field.
-
total_memory
public long total_memory()- Returns:
- the value of the
total_memory
field.
-
attr
- Returns:
- a
hwloc_obj_attr_u
view of the struct pointed to by theattr
field.
-
depth
public int depth()- Returns:
- the value of the
depth
field.
-
logical_index
public int logical_index()- Returns:
- the value of the
logical_index
field.
-
next_cousin
- Returns:
- a
hwloc_obj
view of the struct pointed to by thenext_cousin
field.
-
prev_cousin
- Returns:
- a
hwloc_obj
view of the struct pointed to by theprev_cousin
field.
-
parent
- Returns:
- a
hwloc_obj
view of the struct pointed to by theparent
field.
-
sibling_rank
public int sibling_rank()- Returns:
- the value of the
sibling_rank
field.
-
next_sibling
- Returns:
- a
hwloc_obj
view of the struct pointed to by thenext_sibling
field.
-
prev_sibling
- Returns:
- a
hwloc_obj
view of the struct pointed to by theprev_sibling
field.
-
arity
public int arity()- Returns:
- the value of the
arity
field.
-
children
- Returns:
- a
PointerBuffer
view of the data pointed to by thechildren
field.
-
first_child
- Returns:
- a
hwloc_obj
view of the struct pointed to by thefirst_child
field.
-
last_child
- Returns:
- a
hwloc_obj
view of the struct pointed to by thelast_child
field.
-
symmetric_subtree
public boolean symmetric_subtree()- Returns:
- the value of the
symmetric_subtree
field.
-
memory_arity
public int memory_arity()- Returns:
- the value of the
memory_arity
field.
-
memory_first_child
- Returns:
- a
hwloc_obj
view of the struct pointed to by thememory_first_child
field.
-
io_arity
public int io_arity()- Returns:
- the value of the
io_arity
field.
-
io_first_child
- Returns:
- a
hwloc_obj
view of the struct pointed to by theio_first_child
field.
-
misc_arity
public int misc_arity()- Returns:
- the value of the
misc_arity
field.
-
misc_first_child
- Returns:
- a
hwloc_obj
view of the struct pointed to by themisc_first_child
field.
-
cpuset
public long cpuset()- Returns:
- the value of the
cpuset
field.
-
complete_cpuset
public long complete_cpuset()- Returns:
- the value of the
complete_cpuset
field.
-
nodeset
public long nodeset()- Returns:
- the value of the
nodeset
field.
-
complete_nodeset
public long complete_nodeset()- Returns:
- the value of the
complete_nodeset
field.
-
infos
- Returns:
- a
hwloc_infos_s
view of theinfos
field.
-
userdata
public long userdata()- Returns:
- the value of the
userdata
field.
-
gp_index
public long gp_index()- Returns:
- the value of the
gp_index
field.
-
userdata
Sets the specified value to theuserdata
field. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newhwloc_obj
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newhwloc_obj
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newhwloc_obj
instance allocated withBufferUtils
. -
create
Returns a newhwloc_obj
instance for the specified memory address. -
createSafe
-
malloc
Returns a newhwloc_obj.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newhwloc_obj.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newhwloc_obj.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create ahwloc_obj.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newhwloc_obj
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newhwloc_obj
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newhwloc_obj.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newhwloc_obj.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype()
. -
nsubtype
Unsafe version ofsubtype()
. -
nsubtypeString
Unsafe version ofsubtypeString()
. -
nos_index
public static int nos_index(long struct) Unsafe version ofos_index()
. -
nname
Unsafe version ofname()
. -
nnameString
Unsafe version ofnameString()
. -
ntotal_memory
public static long ntotal_memory(long struct) Unsafe version oftotal_memory()
. -
nattr
Unsafe version ofattr()
. -
ndepth
public static int ndepth(long struct) Unsafe version ofdepth()
. -
nlogical_index
public static int nlogical_index(long struct) Unsafe version oflogical_index()
. -
nnext_cousin
Unsafe version ofnext_cousin()
. -
nprev_cousin
Unsafe version ofprev_cousin()
. -
nparent
Unsafe version ofparent()
. -
nsibling_rank
public static int nsibling_rank(long struct) Unsafe version ofsibling_rank()
. -
nnext_sibling
Unsafe version ofnext_sibling()
. -
nprev_sibling
Unsafe version ofprev_sibling()
. -
narity
public static int narity(long struct) Unsafe version ofarity()
. -
nchildren
Unsafe version ofchildren
. -
nfirst_child
Unsafe version offirst_child()
. -
nlast_child
Unsafe version oflast_child()
. -
nsymmetric_subtree
public static int nsymmetric_subtree(long struct) Unsafe version ofsymmetric_subtree()
. -
nmemory_arity
public static int nmemory_arity(long struct) Unsafe version ofmemory_arity()
. -
nmemory_first_child
Unsafe version ofmemory_first_child()
. -
nio_arity
public static int nio_arity(long struct) Unsafe version ofio_arity()
. -
nio_first_child
Unsafe version ofio_first_child()
. -
nmisc_arity
public static int nmisc_arity(long struct) Unsafe version ofmisc_arity()
. -
nmisc_first_child
Unsafe version ofmisc_first_child()
. -
ncpuset
public static long ncpuset(long struct) Unsafe version ofcpuset()
. -
ncomplete_cpuset
public static long ncomplete_cpuset(long struct) Unsafe version ofcomplete_cpuset()
. -
nnodeset
public static long nnodeset(long struct) Unsafe version ofnodeset()
. -
ncomplete_nodeset
public static long ncomplete_nodeset(long struct) Unsafe version ofcomplete_nodeset()
. -
ninfos
Unsafe version ofinfos()
. -
nuserdata
public static long nuserdata(long struct) Unsafe version ofuserdata()
. -
ngp_index
public static long ngp_index(long struct) Unsafe version ofgp_index()
. -
nuserdata
public static void nuserdata(long struct, long value) Unsafe version ofuserdata
.
-