函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\microcode\amd.c Create Date:2022-07-27 09:09:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static bool verify_container(const u8 *buf, size_t buf_size, bool early)

返回类型:bool

参数:

类型参数名称
const u8 *buf
size_tbuf_size
boolearly
93  如果buf_size小于等于CONTAINER_HDR_SZ
94  如果非earlypr_debug("Truncated microcode container header.\n")
97  返回:false
100  cont_magic等于buf
101  如果cont_magic不等于UCODE_MAGIC
102  如果非earlypr_debug("Invalid magic value (0x%08x).\n", cont_magic)
105  返回:false
108  返回:true
调用者
名称描述
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: