Function report |
Source Code:mm\sparse.c |
Create Date:2022-07-28 15:34:45 |
| Last Modify:2020-03-17 22:36:03 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:section_deactivate
Proto:static void section_deactivate(unsigned long pfn, unsigned long nr_pages, struct vmem_altmap *altmap)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned long | pfn | |
| unsigned long | nr_pages | |
| struct vmem_altmap * | altmap |
| 742 | DECLARE_BITMAP(map, SUBSECTIONS_PER_SECTION) = {0} |
| 743 | DECLARE_BITMAP(tmp, SUBSECTIONS_PER_SECTION) = {0} |
| 744 | ms = __pfn_to_section(pfn) |
| 745 | section_is_early = early_section(ms) |
| 747 | unsigned long * subsection_map = usage ? & subsection_map[0] : NULL |
| 750 | subsection_mask_set(map, pfn, nr_pages) |
| 751 | If subsection_map Then bitmap_and(tmp, map, subsection_map, SUBSECTIONS_PER_SECTION) |
| 754 | If WARN(!subsection_map || !bitmap_equal(tmp, map, SUBSECTIONS_PER_SECTION), "section already deactivated (%#lx + %ld)\n", pfn, nr_pages) Then Return |
| 777 | If bitmap_empty(subsection_map, SUBSECTIONS_PER_SECTION) Then |
| 795 | If section_is_early && memmap Then free_map_bootmem(memmap) |
| 797 | Else depopulate_section_memmap(pfn, nr_pages, altmap) |
| Name | Describe |
|---|---|
| section_activate | |
| sparse_remove_section |
| 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 |