函数逻辑报告

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

函数名称:install_equiv_cpu_table

函数原型:static size_t install_equiv_cpu_table(const u8 *buf, size_t buf_size)

返回类型:size_t

参数:

类型参数名称
const u8 *buf
size_tbuf_size
724  如果非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.则返回:0
727  hdr等于buf
728  equiv_tbl_len等于hdr[2]
730  entry等于vmalloc(equiv_tbl_len)
731  如果非entry
732  打印错误信息("failed to allocate equivalent CPU table\n")
733  返回:0
736  memcpy(entry, buf + CONTAINER_HDR_SZ, equiv_tbl_len)
737  num_entries等于equiv_tbl_lensizeof(structequiv_cpu_entry)
740  返回:equiv_tbl_lenCONTAINER_HDR_SZ
调用者
名称描述
__load_microcode_amd