/* * Any memory allocated via the memblock allocator and not via the * buddy will be marked reserved already in the memmap. For those * pages, we can call this function to free it to buddy allocator.
*/ staticinlinevoid free_bootmem_page(struct page *page)
{ enum bootmem_type type = bootmem_type(page);
/* * The reserve_bootmem_region sets the reserved flag on bootmem * pages.
*/
VM_BUG_ON_PAGE(page_ref_count(page) != 2, page);
if (type == SECTION_INFO || type == MIX_SECTION_INFO)
put_page_bootmem(page); else
VM_BUG_ON_PAGE(1, page);
} #else staticinlinevoid register_page_bootmem_info_node(struct pglist_data *pgdat)
{
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.