Class WinNT.CACHE_RELATIONSHIP
java.lang.Object
com.sun.jna.Structure
com.sun.jna.platform.win32.WinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX
com.sun.jna.platform.win32.WinNT.CACHE_RELATIONSHIP
- Enclosing interface:
WinNT
@FieldOrder({"level","associativity","lineSize","cacheSize","type","reserved","groupCount","groupMasks"})
public static class WinNT.CACHE_RELATIONSHIP
extends WinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX
Describes cache attributes.
- Author:
- dblock[at]dblock.org
-
Nested Class Summary
Nested classes/interfaces inherited from class Structure
Structure.ByReference, Structure.ByValue, Structure.FieldOrder, Structure.StructField -
Field Summary
FieldsModifier and TypeFieldDescriptionbyteThe cache associativity.intThe cache size, in bytes.shortThe number of groups included in the GroupMasks array.AWinNT.GROUP_AFFINITYstructure that specifies a group number and processor affinity within the group.An array ofWinNT.GROUP_AFFINITYstructures that specifies a group number and processor affinity within the group.byteThe cache level.shortThe cache line size, in bytes.byte[]This member is reserved.intThe cache type.Fields inherited from class WinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX
relationship, sizeFields inherited from class Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLook up all fields in this class and superclasses.voidread()Reads the fields of the struct from native memoryMethods inherited from class WinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX
fromPointerMethods inherited from class Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
Field Details
-
level
public byte levelThe cache level. This member can be 1 (L1), 2 (L2), 3 (L3), or 4 (L4). -
associativity
public byte associativityThe cache associativity. If this member isWinNT.CACHE_FULLY_ASSOCIATIVE, the cache is fully associative. -
lineSize
public short lineSizeThe cache line size, in bytes. -
cacheSize
public int cacheSizeThe cache size, in bytes. -
type
public int typeThe cache type. This member is aWinNT.PROCESSOR_CACHE_TYPEvalue. -
reserved
public byte[] reservedThis member is reserved. -
groupCount
public short groupCountThe number of groups included in the GroupMasks array. This field was introduced in Windows Server 2022 (21H2). On earlier versions, this value is always 0. -
groupMask
AWinNT.GROUP_AFFINITYstructure that specifies a group number and processor affinity within the group. This member is only relevant ifgroupCountis 0. -
groupMasks
An array ofWinNT.GROUP_AFFINITYstructures that specifies a group number and processor affinity within the group. This member is only relevant ifgroupCountis 1 or greater.
-
-
Constructor Details
-
CACHE_RELATIONSHIP
public CACHE_RELATIONSHIP() -
CACHE_RELATIONSHIP
-
-
Method Details
-
read
-
getFieldList
-