Function report |
Source Code:mm\sparse.c |
Create Date:2022-07-28 15:34:50 |
Last Modify:2020-03-17 22:36:03 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:section_activate
Proto:static struct page *__meminit section_activate(int nid, unsigned long pfn, unsigned long nr_pages, struct vmem_altmap *altmap)
Type:struct page
Parameter:
Type | Parameter | Name |
---|---|---|
int | nid | |
unsigned long | pfn | |
unsigned long | nr_pages | |
struct vmem_altmap * | altmap |
804 | DECLARE_BITMAP(map, SUBSECTIONS_PER_SECTION) = {0} |
805 | ms = __pfn_to_section(pfn) |
806 | struct usage = NULL |
809 | rc = 0 |
811 | subsection_mask_set(map, pfn, nr_pages) |
813 | If Not usage Then |
819 | subsection_map = subsection_map[0] |
821 | If bitmap_empty(map, SUBSECTIONS_PER_SECTION) Then rc = -EINVAL |
823 | Else if bitmap_intersects(map, subsection_map, SUBSECTIONS_PER_SECTION) Then rc = -EEXIST |
825 | Else bitmap_or(subsection_map, map, subsection_map, SUBSECTIONS_PER_SECTION) |
829 | If rc Then |
843 | If nr_pages < PAGES_PER_SECTION && early_section(ms) Then Return pfn_to_page(pfn) |
847 | If Not memmap Then |
852 | Return memmap |
Name | Describe |
---|---|
sparse_add_section | sparse_add_section - add a memory section, or populate an existing one*@nid: The node to add section on*@start_pfn: start pfn of the memory range*@nr_pages: number of pfns to add in the section*@altmap: device page map* This is only intended for hotplug |
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 |