hwlocality_helper_types(3)
β¨ NAME β¨
hwlocality_helper_types(3) β Kinds of object Type π
Welcome to the hwlocality_helper_types(3) page from the Library Functions Manual, bestie! This is where hwloc helps you figure out what kind of object type youβre holding, with six tiny check functions that are lowkey iconic. π«Ά
π«Ά SYNOPSIS π«Ά
Functions
int hwloc_obj_type_is_normal (hwloc_obj_type_t type)
int hwloc_obj_type_is_io (hwloc_obj_type_t type)
int hwloc_obj_type_is_memory (hwloc_obj_type_t type)
int hwloc_obj_type_is_cache (hwloc_obj_type_t type)
int hwloc_obj_type_is_dcache (hwloc_obj_type_t type)
int hwloc_obj_type_is_icache (hwloc_obj_type_t type)
Six functions, same adorable shape: you hand over a hwloc_obj_type_t type, and they hand back an int thatβs either 1 for βyes bestieβ or 0 for βnope.β No cap. β¨
πΈ Detailed Description πΈ
Okay so every object type is either Normal (i.e. hwloc_obj_type_is_normal() returns 1), or Memory (i.e. hwloc_obj_type_is_memory() returns 1) or I/O (i.e. hwloc_obj_type_is_io() returns 1) or Misc (i.e. equal to HWLOC_OBJ_MISC). It cannot be of more than one of these kinds. Periodt. π
See also Object Kind in Terms and Definitions. π¦
π Function Documentation π
π int hwloc_obj_type_is_cache (hwloc_obj_type_t type)
Checks whether an object type is a CPU Cache β thatβs Data, Unified or Instruction. Memory-side caches are not CPU caches, bestie. π
Returns: 1 if an object of type type is a Cache, 0 otherwise.
π int hwloc_obj_type_is_dcache (hwloc_obj_type_t type)
Checks whether an object type is a CPU Data or Unified Cache. Memory-side caches are not CPU caches. π§
Returns: 1 if an object of type type is a CPU Data or Unified Cache, 0 otherwise.
β int hwloc_obj_type_is_icache (hwloc_obj_type_t type)
Checks whether an object type is a CPU Instruction Cache. Memory-side caches are not CPU caches. π
Returns: 1 if an object of type type is a CPU Instruction Cache, 0 otherwise.
π₯ int hwloc_obj_type_is_io (hwloc_obj_type_t type)
Checks whether an object type is I/O. I/O objects are objects attached to their parents in the I/O children list. The current lineup includes Bridges, PCI and OS devices. π
Returns: 1 if an object of type type is a I/O object, 0 otherwise.
π¦ int hwloc_obj_type_is_memory (hwloc_obj_type_t type)
Checks whether an object type is Memory. Memory objects are objects attached to their parents in the Memory children list. The current lineup includes NUMA nodes and Memory-side caches. π
Returns: 1 if an object of type type is a Memory object, 0 otherwise.
πΈ int hwloc_obj_type_is_normal (hwloc_obj_type_t type)
Checks whether an object type is Normal. Normal objects are objects of the main CPU hierarchy (Machine, Package, Core, PU, CPU caches, etc.), but they are not NUMA nodes, I/O devices or Misc objects. π
They are attached to parent as Normal children, not as Memory, I/O or Misc children.
Returns: 1 if an object of type type is a Normal object, 0 otherwise.
π Author π
Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.
okay thatβs the whole page bestie π«Ά footer shoutout: Hardware Locality (hwloc), Version 2.15.0, page hwlocality_helper_types(3) β mwah, bye! ππ
π¦ where this page comes from
- arch rolling: hwloc 2.15.0-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms