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:09
Last Modify:2022-05-18 17:35:08 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mtrr_check

Proto:static int mtrr_check(unsigned long base, unsigned long size)

Type:int

Parameter:

TypeParameterName
unsigned longbase
unsigned longsize
409  If base & PAGE_SIZE - 1 || size & PAGE_SIZE - 1 Then
410  pr_warn("size and base must be multiples of 4 kiB\n")
411  pr_debug("size: 0x%lx base: 0x%lx\n", size, base)
412  dump_stack()
413  Return -1
415  Return 0
Caller
NameDescribe
mtrr_addmtrr_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
mtrr_delmtrr_del - delete a memory type region*@reg: Register returned by mtrr_add*@base: Physical base address*@size: Size of region* If register is supplied then base and size are ignored. This is* how drivers should call it.* Releases an MTRR region