函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mincore.c Create Date:2022-07-27 16:12:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__mincore_unmapped_range

函数原型:static int __mincore_unmapped_range(unsigned long addr, unsigned long end, struct vm_area_struct *vma, unsigned char *vec)

返回类型:int

参数:

类型参数名称
unsigned longaddr
unsigned longend
struct vm_area_struct *vma
unsigned char *vec
98  nr等于endaddr右移PAGE_SHIFT determines the page size
101  如果File we map to (can be NULL).
104  pgoff等于linear_page_index(vma, addr)
105 i小于nr循环vec[i]等于Later we can get more picky about what "in core" means precisely.* For now, simply check to see if the page is in the page cache,* and is up to date; i.e. that no page-in operation would be required
107  否则
108 i小于nr循环vec[i]等于0
111  返回:nr
调用者
名称描述
mincore_unmapped_range
mincore_pte_range