函数逻辑报告

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

函数名称:__load_microcode_amd

函数原型:static enum ucode_state __load_microcode_amd(u8 family, const u8 *data, size_t size)

返回类型:enum ucode_state

参数:

类型参数名称
u8family
const u8 *data
size_tsize
806  fw等于data
809  offset等于install_equiv_cpu_table(data, size)
810  如果非offset则返回:UCODE_ERROR
813  fw加等于offset
814  size减等于offset
816  如果fw不等于UCODE_UCODE_TYPE
817  打印错误信息("invalid type field in container file section header\n")
818  free_equiv_cpu_table()
819  返回:UCODE_ERROR
822 size大于0循环
823  crnt_size等于0
826  ret等于Return a non-negative value even if some of the checks failed so that* we can skip over the next patch. If we return a negative value, we* signal a grave error like a memory allocation has failed and the* driver cannot continue functioning normally
827  如果ret小于0则返回:UCODE_ERROR
830  fw加等于crnt_sizeSECTION_HDR_SIZE
831  size减等于crnt_sizeSECTION_HDR_SIZE
834  返回:UCODE_OK
调用者
名称描述
load_microcode_amd