函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\microcode\amd.c |
Create Date:2022-07-27 09:09:07 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Verify the patch in @buf.* Returns:* negative: on error* positive: patch is not for this family, skip it* 0: success
函数原型:static int verify_patch(u8 family, const u8 *buf, size_t buf_size, unsigned int *patch_size, bool early)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
u8 | family | |
const u8 * | buf | |
size_t | buf_size | |
unsigned int * | patch_size | |
bool | early |
252 | buf_size减等于SECTION_HDR_SIZE |
266 | 如果非ret则 |
272 | patch_size等于sh_psize |
274 | mc_hdr等于buf加SECTION_HDR_SIZE |
281 | proc_id等于processor_rev_id |
286 | 返回:0 |
名称 | 描述 |
---|---|
parse_container | 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 |
verify_and_add_patch | 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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |