Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\microcode\core.c Create Date:2022-07-28 08:07:45
Last Modify:2020-03-16 20:13:29 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:reload_store

Proto:static ssize_t reload_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size)

Type:ssize_t

Parameter:

TypeParameterName
struct device *dev
struct device_attribute *attr
const char *buf
size_tsize
623  tmp_ret = UCODE_OK
624  bsp = Index into per_cpu list:
626  ret = 0
628  ret = kstrtoul - convert a string to an unsigned long*@s: The start of the string. The string must be null-terminated, and may also* include a single newline before its terminating null. The first character* may also be a plus sign, but not a minus sign.
629  If ret Then Return ret
632  If val != 1 Then Return size
635  tmp_ret = request_microcode_fw(bsp, & dev, true)
636  If tmp_ret != UCODE_NEW Then Return size
639  get_online_cpus()
641  ret = check_online_cpus()
642  If ret Then Go to put
645  mutex_lock( & Synchronization.* All non cpu-hotplug-callback call sites use:* - microcode_mutex to synchronize with each other;* - get/put_online_cpus() to synchronize with* the cpu-hotplug-callback call sites.* We guarantee that only a single cpu is being)
646  ret = Reload microcode late on all CPUs. Wait for a sec until they* all gather together.
647  mutex_unlock( & Synchronization.* All non cpu-hotplug-callback call sites use:* - microcode_mutex to synchronize with each other;* - get/put_online_cpus() to synchronize with* the cpu-hotplug-callback call sites.* We guarantee that only a single cpu is being)
649  put :
650  put_online_cpus()
652  If ret >= 0 Then ret = size
655  Return ret