函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Zero all valid struct pages in range [spfn, epfn), return number of struct* pages zeroed

函数原型:static u64 zero_pfn_range(unsigned long spfn, unsigned long epfn)

返回类型:u64

参数:

类型参数名称
unsigned longspfn
unsigned longepfn
6899  pgcnt等于0
6901 pfn小于epfn循环
6902  如果非pfn_valid(ALIGN_DOWN(pfn, pageblock_nr_pages))则
6905  继续下一循环
6907  mm_zero_struct_page(pfn_to_page(pfn))
6908  pgcnt自加
6911  返回:pgcnt
调用者
名称描述
zero_resv_unavailOnly struct pages that are backed by physical memory are zeroed and* initialized by going through __init_single_page()