UefiCpuPkg[all]  0.90
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
CpuCacheInfoLib.h File Reference

Data Structures

struct  CPU_CACHE_INFO
 

Functions

EFI_STATUS EFIAPI GetCpuCacheInfo (IN OUT CPU_CACHE_INFO *CpuCacheInfo, IN OUT UINTN *CpuCacheInfoCount)
 

Detailed Description

Header file for CPU Cache info Library.

Copyright (c) 2020 - 2021, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Function Documentation

EFI_STATUS EFIAPI GetCpuCacheInfo ( IN OUT CPU_CACHE_INFO CpuCacheInfo,
IN OUT UINTN *  CpuCacheInfoCount 
)

Get CpuCacheInfo data array. The array is sorted by CPU package ID, core type, cache level and cache type.

Parameters
[in,out]CpuCacheInfoPointer to the CpuCacheInfo array.
[in,out]CpuCacheInfoCountAs input, point to the length of response CpuCacheInfo array. As output, point to the actual length of response CpuCacheInfo array.
Return values
EFI_SUCCESSFunction completed successfully.
EFI_INVALID_PARAMETERCpuCacheInfoCount is NULL.
EFI_INVALID_PARAMETERCpuCacheInfo is NULL while CpuCacheInfoCount contains the value greater than zero.
EFI_UNSUPPORTEDProcessor does not support CPUID_CACHE_PARAMS Leaf.
EFI_OUT_OF_RESOURCESRequired resources could not be allocated.
EFI_BUFFER_TOO_SMALLCpuCacheInfoCount is too small to hold the response CpuCacheInfo array. CpuCacheInfoCount has been updated with the length needed to complete the request.