函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\microcode\amd.c |
Create Date:2022-07-27 09:09:05 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Check whether there is a valid, non-truncated microcode patch section at the* beginning of @buf of size @buf_size. Set @early to use this function in the* early path.* On success, @sh_psize returns the patch size according to the section header,
函数原型:static bool __verify_patch_section(const u8 *buf, size_t buf_size, unsigned int *sh_psize, bool early)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
const u8 * | buf | |
size_t | buf_size | |
unsigned int * | sh_psize | |
bool | early |
161 | 如果buf_size小于SECTION_HDR_SIZE则 |
172 | 如果p_type不等于UCODE_UCODE_TYPE则 |
177 | 返回:false |
180 | 如果p_size小于sizeof(structmicrocode_header_amd)则 |
189 | 返回:true |
名称 | 描述 |
---|---|
verify_patch | Verify the patch in @buf.* Returns:* negative: on error* positive: patch is not for this family, skip it* 0: success |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |