Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\microcode\intel.c Create Date:2022-07-28 08:08:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:request_microcode_fw

Proto:static enum ucode_state request_microcode_fw(int cpu, struct device *device, bool refresh_fw)

Type:enum ucode_state

Parameter:

TypeParameterName
intcpu
struct device *device
boolrefresh_fw
972  c = cpu_data(cpu)
979  If is_blacklisted(cpu) Then Return UCODE_NFOUND
982  sprintf(name, "intel-ucode/%02x-%02x-%02x", CPU family , x86_model, x86_stepping)
985  If request_firmware_direct( & firmware, name, device) Then
986  pr_debug("data file %s load failed\n", name)
987  Return UCODE_NFOUND
990  and that should *never* hold a userland pointer = data
991  iov_len = size
992  iov_iter_kvec( & iter, WRITE, & kvec, 1, size)
993  ret = generic_load_microcode(cpu, & iter)
995  release_firmware(firmware)
997  Return ret