函数逻辑报告

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:29
Last Modify:2022-05-18 17:45:43 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:set_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.

函数原型:static unsigned long set_mtrr_state(void)

返回类型:unsigned long

参数:

693  change_mask等于0
696 i小于num_var_ranges循环
697  如果Set the MSR pair relating to a var range.* Returns true if changes are made.change_mask或等于MTRR_CHANGE_MASK_VARIABLE
701  如果have_fixedset_fixed_ranges - checks & updates the fixed-range MTRRs if they* differ from the saved set*@frs: pointer to fixed-range MTRR values, saved by get_fixed_ranges()change_mask或等于MTRR_CHANGE_MASK_FIXED
708  如果deftype_lo按位与0xff的值不等于def_typedeftype_lo按位与0xc00的值右移10位不等于enabled
711  deftype_lo等于deftype_lo按位与0xcff的反按位或def_type按位或enabled左移10位
713  change_mask或等于MTRR_CHANGE_MASK_DEFTYPE
716  返回:change_mask
调用者
名称描述
generic_set_all