Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mtrr\mtrr.c Create Date:2022-07-28 08:05:01
Last Modify:2022-05-18 17:35:08 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Returns non-zero if we have the write-combining memory type

Proto:static int have_wrcomb(void)

Type:int

Parameter:Nothing

94  dev = pci_get_class(PCI_CLASS_BRIDGE_HOST << 8, NULL)
95  If (dev != NULL) Then
104  pr_info("Serverworks LE rev < 6 detected. Write-combining disabled.\n")
105  pci_dev_put(dev)
106  Return 0
114  pr_info("Intel 450NX MMC detected. Write-combining disabled.\n")
115  pci_dev_put(dev)
116  Return 0
118  pci_dev_put(dev)
120  Return If have_wrcomb Then have_wrcomb() Else 0
Caller
NameDescribe
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