Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Zero all valid struct pages in range [spfn, epfn), return number of struct* pages zeroed

Proto:static u64 zero_pfn_range(unsigned long spfn, unsigned long epfn)

Type:u64

Parameter:

TypeParameterName
unsigned longspfn
unsigned longepfn
6899  pgcnt = 0
6901  When pfn < epfn cycle
6902  If Not pfn_valid(ALIGN_DOWN(pfn, pageblock_nr_pages)) Then
6905  Continue
6907  mm_zero_struct_page(pfn_to_page(pfn))
6908  pgcnt++
6911  Return pgcnt
Caller
NameDescribe
zero_resv_unavailOnly struct pages that are backed by physical memory are zeroed and* initialized by going through __init_single_page()