Function report |
Source Code:arch\x86\kernel\cpu\microcode\amd.c |
Create Date:2022-07-28 08:09:19 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:static int verify_and_add_patch(u8 family, u8 *fw, unsigned int leftover, unsigned int *patch_size)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| 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 |
| 774 | patch = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
| 775 | If Not patch Then |
| 780 | Intel uses only this one = kmemdup(fw + SECTION_HDR_SIZE, * patch_size, GFP_KERNEL) |
| 781 | If Not Intel uses only this one Then |
| 787 | mc_hdr = fw + SECTION_HDR_SIZE |
| 788 | proc_id = processor_rev_id |
| 798 | update_cache(patch) |
| 800 | Return 0 |
| Name | Describe |
|---|---|
| __load_microcode_amd |
| 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 |