TianoCore EDK2 master
|
Go to the source code of this file.
Data Structures | |
struct | CPU_CACHE_INFO |
Functions | |
EFI_STATUS EFIAPI | GetCpuCacheInfo (IN OUT CPU_CACHE_INFO *CpuCacheInfo, IN OUT UINTN *CpuCacheInfoCount) |
Header file for CPU Cache info Library.
Copyright (c) 2020 - 2021, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file CpuCacheInfoLib.h.
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.
[in,out] | CpuCacheInfo | Pointer to the CpuCacheInfo array. |
[in,out] | CpuCacheInfoCount | As input, point to the length of response CpuCacheInfo array. As output, point to the actual length of response CpuCacheInfo array. |
EFI_SUCCESS | Function completed successfully. |
EFI_INVALID_PARAMETER | CpuCacheInfoCount is NULL. |
EFI_INVALID_PARAMETER | CpuCacheInfo is NULL while CpuCacheInfoCount contains the value greater than zero. |
EFI_UNSUPPORTED | Processor does not support CPUID_CACHE_PARAMS Leaf. |
EFI_OUT_OF_RESOURCES | Required resources could not be allocated. |
EFI_BUFFER_TOO_SMALL | CpuCacheInfoCount is too small to hold the response CpuCacheInfo array. CpuCacheInfoCount has been updated with the length needed to complete the request. |
Definition at line 420 of file CpuCacheInfoLib.c.