Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mincore.c Create Date:2022-07-28 14:44:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__mincore_unmapped_range

Proto:static int __mincore_unmapped_range(unsigned long addr, unsigned long end, struct vm_area_struct *vma, unsigned char *vec)

Type:int

Parameter:

TypeParameterName
unsigned longaddr
unsigned longend
struct vm_area_struct *vma
unsigned char *vec
98  nr = end - addr >> PAGE_SHIFT determines the page size
101  If File we map to (can be NULL). Then
104  pgoff = linear_page_index(vma, addr)
105  When i < nr cycle 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  Else
108  When i < nr cycle vec[i] = 0
111  Return nr
Caller
NameDescribe
mincore_unmapped_range
mincore_pte_range