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

Name:set_mtrr_cpuslocked

Proto:static void set_mtrr_cpuslocked(unsigned int reg, unsigned long base, unsigned long size, mtrr_type type)

Type:void

Parameter:

TypeParameterName
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.
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
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