folly::x86_cpuid_get_cache_info

Returns cache info for the cache with the given id for the given vendor.

Synopsis

Declared in <folly/system/arch/x86.h>

x86_cpuid_cache_info
x86_cpuid_get_cache_info(
    x86_cpuid_vendor vend,
    unsigned int id);

Return Value

Cache info for the requested cache, or an empty value if none.

Parameters

NameDescription
vendThe detected CPU vendor.
idThe zero-based cache level index to query.