函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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 long | spfn | |
unsigned long | epfn |
6899 | pgcnt等于0 |
6902 | 如果非pfn_valid(ALIGN_DOWN(pfn, pageblock_nr_pages))则 |
6903 | pfn等于ALIGN_DOWN(pfn, pageblock_nr_pages)加pageblock_nr_pages减1 |
6905 | 继续下一循环 |
6907 | mm_zero_struct_page(pfn_to_page(pfn)) |
6908 | pgcnt自加 |
6911 | 返回:pgcnt |
名称 | 描述 |
---|---|
zero_resv_unavail | Only struct pages that are backed by physical memory are zeroed and* initialized by going through __init_single_page() |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |