函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mtrr\generic.c Create Date:2022-07-27 09:06:27
Last Modify:2022-05-18 17:45:43 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Set the MSR pair relating to a var range.* Returns true if changes are made.

函数原型:static bool set_mtrr_var_ranges(unsigned int index, struct mtrr_var_range *vr)

返回类型:bool

参数:

类型参数名称
unsigned intindex
struct mtrr_var_range *vr
661  bool changed = false
663  Access to machine-specific registers (available on 586 and better only)* Note: the rd* operations modify the parameters directly (without using* pointer indirection), this allows gcc to optimize better(MTRRphysBase_MSR(index), lo, hi)
664  如果base_lo按位与0xfffff0ffUL的值不等于lo按位与0xfffff0ffUL的值或base_hi按位与size_and_mask右移32减PAGE_SHIFT determines the page size 位的值不等于hi按位与size_and_mask右移32减PAGE_SHIFT determines the page size 位的值则
668  Doesn't attempt to pass an error out to MTRR users* because it's quite complicated in some cases and probably not* worth it because the best error handling is to ignore it.
669  changed = true
672  Access to machine-specific registers (available on 586 and better only)* Note: the rd* operations modify the parameters directly (without using* pointer indirection), this allows gcc to optimize better(MTRRphysMask_MSR(index), lo, hi)
674  如果mask_lo按位与0xfffff800UL的值不等于lo按位与0xfffff800UL的值或mask_hi按位与size_and_mask右移32减PAGE_SHIFT determines the page size 位的值不等于hi按位与size_and_mask右移32减PAGE_SHIFT determines the page size 位的值则
677  Doesn't attempt to pass an error out to MTRR users* because it's quite complicated in some cases and probably not* worth it because the best error handling is to ignore it.
678  changed = true
680  返回:changed
调用者
名称描述
set_mtrr_stateset_mtrr_state - Set the MTRR state for this CPU.* NOTE: The CPU must already be in a safe state for MTRR changes.* RETURNS: 0 if no changes made, else a mask indicating what was changed.