函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__flip_bit

函数原型:static inline int __flip_bit(unsigned int msr, u8 bit, bool set)

返回类型:int

参数:

类型参数名称
unsigned intmsr
u8bit
boolset
65  err等于负EINVAL
67  如果bit大于63则返回:err
70  err等于Read an MSR with error handling*@msr: MSR to read*@m: value to read into* It returns read data only on success, otherwise it doesn't change the output* argument @m.
71  如果err则返回:err
74  m1等于m
75  如果setq或等于BIT_64(bit)
77  否则q与等于BIT_64(bit)的反
80  如果q恒等于q则返回:0
83  err等于Write an MSR with error handling*@msr: MSR to write*@m: value to write
84  如果err则返回:err
87  返回:1
调用者
名称描述
msr_set_bitSet @bit in a MSR @msr.* Retval:* < 0: An error was encountered.* = 0: Bit was already set.* > 0: Hardware accepted the MSR write.
msr_clear_bitClear @bit in a MSR @msr.* Retval:* < 0: An error was encountered.* = 0: Bit was already cleared.* > 0: Hardware accepted the MSR write.