Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mmzone.h Create Date:2022-07-28 05:37:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Returns true if a zone has pages managed by the buddy allocator.* All the reclaim decisions have to use this function rather than* populated_zone(). If the whole zone is reserved then we can easily* end up with populated_zone() && !managed_zone().

Proto:static inline bool managed_zone(struct zone *zone)

Type:bool

Parameter:

TypeParameterName
struct zone *zone
887  Return zone_managed_pages(zone)
Caller
NameDescribe
lruvec_lru_sizelruvec_lru_size - Returns the number of pages on the given LRU list.*@lruvec: lru vector*@lru: lru to use*@zone_idx: zones to consider (use MAX_NR_ZONES for the whole LRU list)
should_continue_reclaimReclaim/compaction is used for high-order allocation requests. It reclaims* order-0 pages before compacting the zone. should_continue_reclaim() returns* true if more pages should be reclaimed such that when the page allocator
shrink_node
allow_direct_reclaim
pgdat_watermark_boosted
pgdat_balancedReturns true if there is an eligible zone balanced for the request order* and classzone_idx
kswapd_shrink_nodekswapd shrinks a node of pages that are at or below the highest usable* zone that is currently unbalanced.* Returns true if kswapd scanned at least the requested number of pages to* reclaim or if the lack of progress was due to pages under writeback.
balance_pgdatFor kswapd, balance_pgdat() will reclaim pages across a node from zones* that are eligible for use by the caller until at least one zone is* balanced.* Returns the order kswapd finished reclaiming at.
wakeup_kswapdA zone is low on free memory or too fragmented for high-order memory
build_zonerefs_nodeBuilds allocation fallback zone lists.* Add all populated zones of a node to the zonelist.