hwlocality...find_cache(3)
Hey bestie π welcome to hwlocality...find_cache(3) from the Library Functions Manual β this is the hwloc page about looking at cache objects, and itβs giving βletβs find that cacheβ main character energy. π
πΈ NAME πΈ
hwlocality_helper_find_cache - Looking at Cache Objects β¨
β¨ SYNOPSIS β¨
Functions
int hwloc_get_cache_type_depth (hwloc_topology_t topology, unsigned cachelevel, hwloc_obj_cache_type_t cachetype)hwloc_obj_t hwloc_get_cache_covering_cpuset (hwloc_topology_t topology, hwloc_const_cpuset_t set)hwloc_obj_t hwloc_get_shared_cache_covering_obj (hwloc_topology_t topology, hwloc_obj_t obj)
π«Ά DETAILED DESCRIPTION π«Ά
Lowkey this section has no extra prose in the original β it slides straight into the function docs. No cap, thatβs the whole vibe. π
π FUNCTION DOCUMENTATION π
π hwloc_get_cache_covering_cpuset π
hwloc_obj_t hwloc_get_cache_covering_cpuset (hwloc_topology_t topology,
hwloc_const_cpuset_t set) [inline]
Get the first data (or unified) cache covering a cpuset set. π¦
Returns
- a covering cache, or
NULLif no cache matches.
π₯ hwloc_get_cache_type_depth π₯
int hwloc_get_cache_type_depth (hwloc_topology_t topology, unsigned cachelevel,
hwloc_obj_cache_type_t cachetype) [inline]
Find the depth of cache objects matching cache level and type. Return the depth of the topology level that contains cache objects whose attributes match cachelevel and cachetype. β
This function is identical to calling hwloc_get_type_depth() with the corresponding type such as HWLOC_OBJ_L1ICACHE, except that it may also return a Unified cache when looking for an instruction cache. π
Returns
- the depth of the unique matching unified cache level is returned if
cachetypeisHWLOC_OBJ_CACHE_UNIFIED. - the depth of either a matching cache level or a unified cache level if
cachetypeisHWLOC_OBJ_CACHE_DATAorHWLOC_OBJ_CACHE_INSTRUCTION. - the depth of the matching level if
cachetypeis-1but only one level matches. HWLOC_TYPE_DEPTH_MULTIPLEifcachetypeis-1but multiple levels match.HWLOC_TYPE_DEPTH_UNKNOWNif no cache level matches.
π hwloc_get_shared_cache_covering_obj π
hwloc_obj_t hwloc_get_shared_cache_covering_obj (hwloc_topology_t topology,
hwloc_obj_t obj) [inline]
Get the first data (or unified) cache shared between an object and somebody else. π«Ά
Returns
- a shared cache.
NULLif no cache matches or if an invalid object is given (e.g. I/O object).
π AUTHOR π
Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code. π
Bye bestie π«Ά this footer energy comes from Hardware Locality (hwloc), Version 2.15.0, and the page title hwlocality...find_cache(3). No date is shown on this one, so Iβm not inventing one β mwah πβ¨
π¦ 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