函数逻辑报告

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

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

函数原型:static size_t parse_container(u8 *ucode, size_t size, struct cont_desc *desc)

返回类型:size_t

参数:

类型参数名称
u8 *ucode
size_tsize
struct cont_desc *desc
299  orig_size等于size
300  hdr等于ucode
304  如果非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
307  buf等于ucode
309  entry等于bufCONTAINER_HDR_SZ
310  num_entries等于hdr[2]除sizeof(structequiv_cpu_entry)
317  eq_id等于find_equiv_id( & table, cpuid_1_eax)
319  buf加等于hdr[2]加CONTAINER_HDR_SZ
320  size减等于hdr[2]加CONTAINER_HDR_SZ
326 size大于0循环
331  ret等于Verify the patch in @buf.* Returns:* negative: on error* positive: patch is not for this family, skip it* 0: success
332  如果ret小于0则
337  转到:out
338  否则如果ret大于0则
339  转到:skip
342  mc等于bufSECTION_HDR_SIZE
343  如果eq_id恒等于processor_rev_id
344  psize等于patch_size
345  mc等于mc
348  :
350  buf加等于patch_sizeSECTION_HDR_SIZE
351  size减等于patch_sizeSECTION_HDR_SIZE
361  如果mc
362  data等于ucode
363  size等于orig_sizesize
365  返回:0
368  out :
369  返回:orig_sizesize
调用者
名称描述
scan_containersScan the ucode blob for the proper container as we can have multiple* containers glued together.