Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-28 15:03:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set_pageblock_migratetype

Proto:void set_pageblock_migratetype(struct page *page, int migratetype)

Type:void

Parameter:

TypeParameterName
struct page *page
intmigratetype
552  If Value for the false possibility is greater at compile time(page_group_by_mobility_disabled && migratetype < MIGRATE_PCPTYPES) Then migratetype = MIGRATE_UNMOVABLE
556  set_pageblock_flags_group(page, (unsignedlong)migratetype, PB_migrate, PB_migrate_end)
Caller
NameDescribe
init_cma_reserved_pageblockFree whole pageblock and set its migration type to MIGRATE_CMA.
change_pageblock_range
steal_suitable_fallbackThis function implements actual steal behaviour. If order is large enough,* we can steal whole pageblock. If not, we first move freepages in this* pageblock to our migratetype and determine how many already-allocated pages
reserve_highatomic_pageblockReserve a pageblock for exclusive use of high-order atomic allocations if* there are no empty page blocks that contain a page with a suitable order
unreserve_highatomic_pageblockUsed when an allocation is about to fail under memory pressure
__isolate_free_page
memmap_init_zoneInitially all pages are reserved - free ones are freed* up by memblock_free_all() once the early boot process is* done. Non-atomic initialization, single-pass.
soft_offline_in_use_page
set_migratetype_isolate
unset_migratetype_isolate