Function report | 
Source Code:arch\x86\kernel\cpu\microcode\amd.c | 
Create Date:2022-07-28 08:09:01 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Verify the patch in @buf.* Returns:* negative: on error* positive: patch is not for this family, skip it* 0: success
Proto:static int verify_patch(u8 family, const u8 *buf, size_t buf_size, unsigned int *patch_size, bool early)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| u8 | family | |
| const u8 * | buf | |
| size_t | buf_size | |
| unsigned int * | patch_size | |
| bool | early | 
| 252 | buf_size -= SECTION_HDR_SIZE | 
| 266 | If Not ret Then | 
| 272 | patch_size = sh_psize | 
| 274 | mc_hdr = buf + SECTION_HDR_SIZE | 
| 278 | Return -1 | 
| 281 | proc_id = processor_rev_id | 
| 286 | Return 0 | 
| Name | Describe | 
|---|---|
| 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 | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |