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:09:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:install_equiv_cpu_table

Proto:static size_t install_equiv_cpu_table(const u8 *buf, size_t buf_size)

Type:size_t

Parameter:

TypeParameterName
const u8 *buf
size_tbuf_size
724  If Not 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. Then Return 0
727  hdr = buf
728  equiv_tbl_len = hdr[2]
730  entry = vmalloc(equiv_tbl_len)
731  If Not entry Then
732  pr_err("failed to allocate equivalent CPU table\n")
733  Return 0
736  memcpy(entry, buf + CONTAINER_HDR_SZ, equiv_tbl_len)
737  num_entries = equiv_tbl_len / sizeof(structequiv_cpu_entry)
740  Return equiv_tbl_len + CONTAINER_HDR_SZ
Caller
NameDescribe
__load_microcode_amd