Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

CACHE_RELATIONSHIP structure (winnt.h)

Describes cache attributes. This structure is used with the GetLogicalProcessorInformationEx function.

Syntax

typedef struct _CACHE_RELATIONSHIP {
 BYTE Level;
 BYTE Associativity;
 WORD LineSize;
 DWORD CacheSize;
 PROCESSOR_CACHE_TYPE Type;
 BYTE Reserved[18];
 WORD GroupCount;
 union {
 GROUP_AFFINITY GroupMask;
 GROUP_AFFINITY GroupMasks[ANYSIZE_ARRAY];
 } DUMMYUNIONNAME;
} CACHE_RELATIONSHIP, *PCACHE_RELATIONSHIP;

Members

Level

The cache level. This member can be one of the following values.

Value Meaning
1
L1
2
L2
3
L3

Associativity

The cache associativity. If this member is CACHE_FULLY_ASSOCIATIVE (0xFF), the cache is fully associative.

LineSize

The cache line size, in bytes.

CacheSize

The cache size, in bytes.

Type

The cache type. This member is a PROCESSOR_CACHE_TYPE value.

Reserved[18]

This member is reserved.

GroupCount

DUMMYUNIONNAME

DUMMYUNIONNAME.GroupMask

DUMMYUNIONNAME.GroupMasks[ANYSIZE_ARRAY]

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header winnt.h

See also

GROUP_AFFINITY

GetLogicalProcessorInformationEx

PROCESSOR_CACHE_TYPE

SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX


Feedback

Was this page helpful?

Additional resources