函数逻辑报告

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:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

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

返回类型:bool

参数:

类型参数名称
const u8 *buf
size_tbuf_size
boolearly
118  hdr等于buf
121  如果非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.则返回:false
124  cont_type等于hdr[1]
125  如果cont_type不等于UCODE_EQUIV_CPU_TABLE_TYPE
126  如果非earlypr_debug("Wrong microcode container equivalence table type: %u.\n", cont_type)
130  返回:false
133  buf_size减等于CONTAINER_HDR_SZ
135  equiv_tbl_len等于hdr[2]
136  如果equiv_tbl_len小于sizeof(structequiv_cpu_entry)或buf_size小于equiv_tbl_len
138  如果非earlypr_debug("Truncated equivalence table.\n")
141  返回:false
144  返回:true
调用者
名称描述
parse_containerThis scans the ucode blob for the proper container as we can have multiple* containers glued together. Returns the equivalence ID from the equivalence* table or 0 if none found.* Returns the amount of bytes consumed while scanning. @desc contains all the
install_equiv_cpu_table