函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mtrr\if.c Create Date:2022-07-27 09:05:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mtrr_file_del

函数原型:static int mtrr_file_del(unsigned long base, unsigned long size, struct file *file, int page)

返回类型:int

参数:

类型参数名称
unsigned longbase
unsigned longsize
struct file *file
intpage
67  fcount等于FILE_FCOUNT(file)
70  如果非page
71  如果base按位与PAGE_SIZE减1或size按位与PAGE_SIZE减1则返回:负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  如果reg小于0则返回:reg
79  如果(fcount == NULL)则返回:reg
81  如果fcount[reg]小于1则返回:负EINVAL
83  fcount[reg]先自减
84  返回:reg
调用者
名称描述
mtrr_ioctl