Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmscan.c Create Date:2022-07-28 14:20:21
Last Modify:2022-05-23 13:41:30 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:node_reclaim

Proto:int node_reclaim(struct pglist_data *pgdat, gfp_t gfp_mask, unsigned int order)

Type:int

Parameter:

TypeParameterName
struct pglist_data *pgdat
gfp_tgfp_mask
unsigned intorder
4266  If Work out how many page cache pages we can reclaim in this reclaim_mode <= * zone reclaim becomes active if more unmapped pages exist. && node_page_state(pgdat, NR_SLAB_RECLAIMABLE) <= min_slab_pages Then Return NODE_RECLAIM_FULL
4273  If Not gfpflags_allow_blocking(gfp_mask) || flags & Allocating memory Then Return NODE_RECLAIM_NOSCAN
4282  If node_state(node_id, N_CPU) && node_id != Returns the number of the current Node. Then Return NODE_RECLAIM_NOSCAN
4285  If st_and_set_bit - Set a bit and return its old value*@nr: Bit to set*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier). Then Return NODE_RECLAIM_NOSCAN
4288  ret = Try to free up some pages from this node through reclaim.
4289  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
4291  If Not ret Then Disable counters
4294  Return ret
Caller
NameDescribe
get_page_from_freelistget_page_from_freelist goes through the zonelist trying to allocate* a page.