Function report |
Source Code:arch\x86\kernel\cpu\microcode\intel.c |
Create Date:2022-07-28 08:08:40 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:generic_load_microcode
Proto:static enum ucode_state generic_load_microcode(int cpu, struct iov_iter *iter)
Type:enum ucode_state
Parameter:
Type | Parameter | Name |
---|---|---|
int | cpu | |
struct iov_iter * | iter |
864 | uci = ucode_cpu_info + cpu |
865 | curr_mc_size = 0 , new_mc_size = 0 |
871 | When iov_iter_count(iter) cycle |
876 | If Not copy_from_iter_full( & mc_header, size of mc_header , iter) Then |
877 | pr_err("error! Truncated or inaccessible header in microcode data file\n") |
878 | Break |
881 | mc_size = get_totalsize( & mc_header) |
883 | pr_err("error! Bad data in microcode data file (totalsize too small)\n") |
884 | Break |
887 | If data_size > iov_iter_count(iter) Then |
888 | pr_err("error! Bad data in microcode data file (truncated file?)\n") |
889 | Break |
893 | If Not mc || mc_size > curr_mc_size Then |
903 | If Not copy_from_iter_full(data, data_size, iter) || microcode_sanity_check(mc, 1) < 0 Then |
905 | Break |
910 | If Returns 1 if update has been found, 0 otherwise. Then |
922 | If iov_iter_count(iter) Then |
924 | Return UCODE_ERROR |
927 | If Not new_mc Then Return UCODE_NFOUND |
940 | pr_debug("CPU%d found a matching microcode update with version 0x%x (current=0x%x)\n", cpu, new_rev, rev) |
943 | Return ret |
Name | Describe |
---|---|
request_microcode_fw | |
request_microcode_user |
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 |