函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\acpi\cppc_msr.c Create Date:2022-07-27 09:17:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:cpc_write_ffh

函数原型:int cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val)

返回类型:int

参数:

类型参数名称
intcpunum
struct cpc_reg *reg
u64val
37  err等于rdmsrl_safe_on_cpu(cpunum, address, & rd_val)
38  如果非err
39  mask等于GENMASK_ULL(bit_offset + bit_width - 1, bit_offset)
42  val左移等于bit_offset
43  val与等于mask
44  rd_val与等于mask的反
45  rd_val或等于val
46  err等于wrmsrl_safe_on_cpu(cpunum, address, rd_val)
48  返回:err