Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| unsigned long | spfn | |
| unsigned long | epfn |
| 6899 | pgcnt = 0 |
| 6902 | If Not pfn_valid(ALIGN_DOWN(pfn, pageblock_nr_pages)) Then |
| 6903 | pfn = ALIGN_DOWN(pfn, pageblock_nr_pages) + pageblock_nr_pages - 1 |
| 6905 | Continue |
| 6907 | mm_zero_struct_page(pfn_to_page(pfn)) |
| 6908 | pgcnt++ |
| 6911 | Return pgcnt |
| Name | Describe |
|---|---|
| zero_resv_unavail | Only struct pages that are backed by physical memory are zeroed and* initialized by going through __init_single_page() |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |