---
name: "hwloc_obj_attr_u_hwloc_cache_attr_s"
section: "3"
platform: "linux"
package: "hwloc"
version: "2.15.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/hwloc_obj_attr_u_hwloc_cache_attr_s"
---

# hwloc\_obj\_attr\_u\_hwloc\_cache\_attr\_s(3)

## NAME

hwloc\_obj\_attr\_u::hwloc\_cache\_attr\_s

## SYNOPSIS

\#include \<hwloc.h\>

### Data Fields

hwloc\_uint64\_t **size**\
 unsigned **depth**\
 unsigned **linesize**\
 int **associativity**\
 **hwloc\_obj\_cache\_type\_t** **type**\

## Detailed Description

Cache-specific Object Attributes.

## Field Documentation

### int hwloc\_obj\_attr\_u::hwloc\_cache\_attr\_s::associativity

Ways of associativity, -1 if fully associative, 0 if unknown.

### unsigned hwloc\_obj\_attr\_u::hwloc\_cache\_attr\_s::depth

Depth of cache (e.g., L1, L2, ...etc.).

### unsigned hwloc\_obj\_attr\_u::hwloc\_cache\_attr\_s::linesize

Cache-line size in bytes. 0 if unknown.

### hwloc\_uint64\_t hwloc\_obj\_attr\_u::hwloc\_cache\_attr\_s::size

Size of cache in bytes.

### hwloc\_obj\_cache\_type\_t hwloc\_obj\_attr\_u::hwloc\_cache\_attr\_s::type

Cache type.

## Author

Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.
