Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\microcode\amd.c Create Date:2022-07-28 08:08:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Check whether there is a valid microcode container file at the beginning* of @buf of size @buf_size. Set @early to use this function in the early path.

Proto:static bool verify_container(const u8 *buf, size_t buf_size, bool early)

Type:bool

Parameter:

TypeParameterName
const u8 *buf
size_tbuf_size
boolearly
93  If buf_size <= CONTAINER_HDR_SZ Then
94  If Not early Then pr_debug("Truncated microcode container header.\n")
97  Return false
100  cont_magic = buf
101  If cont_magic != UCODE_MAGIC Then
102  If Not early Then pr_debug("Invalid magic value (0x%08x).\n", cont_magic)
105  Return false
108  Return true
Caller
NameDescribe
verify_equivalence_tableCheck whether there is a valid, non-truncated CPU equivalence table at the* beginning of @buf of size @buf_size. Set @early to use this function in the* early path.
request_microcode_amdAMD microcode firmware naming convention, up to family 15h they are in* the legacy file:* amd-ucode/microcode_amd.bin* This legacy file is always smaller than 2K in size.* Beginning with family 15h, they are in family-specific firmware files: