函数逻辑报告

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

函数名称:save_microcode_in_initrd_amd

函数原型:int __init save_microcode_in_initrd_amd(unsigned int cpuid_1_eax)

返回类型:int

参数:

类型参数名称
unsigned intcpuid_1_eax
546  struct cont_desc desc = {0}
550  cp等于find_microcode_in_initrd(Microcode patch container file is prepended to the initrd in cpio* format. See Documentation/x86/microcode.rst, false)
551  如果非datasize的值则返回:负EINVAL
554  cpuid_1_eax等于cpuid_1_eax
556  Scan the ucode blob for the proper container as we can have multiple* containers glued together.
557  如果非mc则返回:负EINVAL
560  ret等于load_microcode_amd(true, x86_family(cpuid_1_eax), data, size)
561  如果ret大于UCODE_UPDATED则返回:负EINVAL
564  返回:0