函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:arch_phys_wc_add - add a WC MTRR and handle errors if PAT is unavailable*@base: Physical base address*@size: Size of region* If PAT is available, this does nothing

函数原型:int arch_phys_wc_add(unsigned long base, unsigned long size)

返回类型:int

参数:

类型参数名称
unsigned longbase
unsigned longsize
571  如果pat_enabled()或非mtrr_enabled()则返回:0
574  ret等于mtrr_add - Add a memory type region*@base: Physical base address of region*@size: Physical size of region*@type: Type of MTRR desired*@increment: If this is true do usage counting on the region* Memory type region registers control the caching on newer
575  如果ret小于0则
576  打印警告信息("Failed to add WC MTRR for [%p-%p]; performance may suffer.", (void * )base, (void * )(base + size - 1))
578  返回:ret
580  返回:retarch_phys_wc_add returns an MTRR register index plus this offset.