函数逻辑报告

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

函数名称:mtrr_check

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

返回类型:int

参数:

类型参数名称
unsigned longbase
unsigned longsize
409  如果base按位与PAGE_SIZE减1或size按位与PAGE_SIZE减1则
410  打印警告信息("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  返回:负1
415  返回:0
调用者
名称描述
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