函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\cpuid-deps.c Create Date:2022-07-27 08:57:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:do_clear_cpu_cap

函数原型:static void do_clear_cpu_cap(struct cpuinfo_x86 *c, unsigned int feature)

返回类型:void

参数:

类型参数名称
struct cpuinfo_x86 *c
unsigned intfeature
95  DECLARE_BITMAP(disable, Take the capabilities and the BUG bits into account )
99  如果WARN_ON(feature >= Take the capabilities and the BUG bits into account )则返回
102  clear_feature(c, feature)
105  memset(disable, 0, disable的长度)
106  __set_bit - Set a bit in memory*@nr: the bit to set*@addr: the address to start counting from* Unlike set_bit(), this function is non-atomic. If it is called on the same* region of memory concurrently, the effect may be that only one operation* succeeds.
109  循环
110  changed = false
111 feature循环
117  changed = true
120 changed循环
调用者
名称描述
clear_cpu_cap
setup_clear_cpu_cap