函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\microcode\amd.c |
Create Date:2022-07-27 09:09:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static int verify_and_add_patch(u8 family, u8 *fw, unsigned int leftover, unsigned int *patch_size)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
u8 | family | |
u8 * | fw | |
unsigned int | leftover | |
unsigned int * | patch_size |
770 | ret等于Verify the patch in @buf.* Returns:* negative: on error* positive: patch is not for this family, skip it* 0: success |
775 | 如果非patch则 |
780 | Intel uses only this one 等于kmemdup(fw + SECTION_HDR_SIZE, * patch_size, GFP_KERNEL) |
781 | 如果非 Intel uses only this one 则 |
787 | mc_hdr等于fw加SECTION_HDR_SIZE |
788 | proc_id等于processor_rev_id |
790 | 初始化链表头 |
798 | update_cache(patch) |
800 | 返回:0 |
名称 | 描述 |
---|---|
__load_microcode_amd |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |