Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mtrr\if.c Create Date:2022-07-28 08:05:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mtrr_file_del

Proto:static int mtrr_file_del(unsigned long base, unsigned long size, struct file *file, int page)

Type:int

Parameter:

TypeParameterName
unsigned longbase
unsigned longsize
struct file *file
intpage
67  fcount = FILE_FCOUNT(file)
70  If Not page Then
71  If base & PAGE_SIZE - 1 || size & PAGE_SIZE - 1 Then Return -EINVAL
73  base >>= PAGE_SHIFT determines the page size
74  size >>= PAGE_SHIFT determines the page size
76  reg = mtrr_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
77  If reg < 0 Then Return reg
79  If (fcount == NULL) Then Return reg
81  If fcount[reg] < 1 Then Return -EINVAL
83  --fcount[reg]
84  Return reg
Caller
NameDescribe
mtrr_ioctl