函数逻辑报告

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

函数名称:set_mtrr_cpuslocked

函数原型:static void set_mtrr_cpuslocked(unsigned int reg, unsigned long base, unsigned long size, mtrr_type type)

返回类型:void

参数:

类型参数名称
unsigned intreg
unsigned longbase
unsigned longsize
mtrr_typetype
244  struct set_mtrr_data data = {smp_reg = reg, smp_base = base, smp_size = size, smp_type = type}
250  stop_machine "Bogolock": stop the entire machine, disable* interrupts. This is a very heavy lock, which is equivalent to* grabbing every spinlock (and more). So the "read" side to such a* lock is anything which disables preemption.
调用者
名称描述
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
mtrr_del_pagemtrr_del_page - 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