函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\microcode\core.c Create Date:2022-07-27 09:07:54
Last Modify:2020-03-16 20:13:29 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:reload_store

函数原型:static ssize_t reload_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size)

返回类型:ssize_t

参数:

类型参数名称
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  如果ret则返回:ret
632  如果val不等于1则返回:size
635  tmp_ret等于request_microcode_fw(bsp, & dev, true)
636  如果tmp_ret不等于UCODE_NEW则返回:size
639  get_online_cpus()
641  ret等于check_online_cpus()
642  如果ret则转到: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  如果ret大于等于0则ret等于size
655  返回:ret