函数逻辑报告

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

函数名称:Returns non-zero if we have the write-combining memory type

函数原型:static int have_wrcomb(void)

返回类型:int

参数:

94  dev等于pci_get_class(PCI_CLASS_BRIDGE_HOST << 8, NULL)
95  如果(dev != NULL)则
101  如果vendor恒等于PCI_VENDOR_ID_SERVERWORKSdevice恒等于PCI_DEVICE_ID_SERVERWORKS_LErevision小于等于5则
104  打印信息("Serverworks LE rev < 6 detected. Write-combining disabled.\n")
105  pci_dev_put(dev)
106  返回:0
114  打印信息("Intel 450NX MMC detected. Write-combining disabled.\n")
115  pci_dev_put(dev)
116  返回:0
118  pci_dev_put(dev)
120  返回:如果have_wrcombhave_wrcomb()否则0
调用者
名称描述
mtrr_add_pagemtrr_add_page - Add a memory type region*@base: Physical base address of region in pages (in units of 4 kB!)*@size: Physical size of region in pages (4 kB)*@type: Type of MTRR desired*@increment: If this is true do usage counting on the region* Memory