函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmscan.c Create Date:2022-07-27 15:44:18
Last Modify:2022-05-23 13:41:30 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:node_reclaim

函数原型:int node_reclaim(struct pglist_data *pgdat, gfp_t gfp_mask, unsigned int order)

返回类型:int

参数:

类型参数名称
struct pglist_data *pgdat
gfp_tgfp_mask
unsigned intorder
4266  如果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则返回:NODE_RECLAIM_FULL
4273  如果非gfpflags_allow_blocking(gfp_mask)或flags按位与Allocating memory 则返回:NODE_RECLAIM_NOSCAN
4282  如果node_state(全局结点ID, N_CPU)且全局结点ID不等于Returns the number of the current Node. 则返回:NODE_RECLAIM_NOSCAN
4285  如果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).则返回: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  如果非retDisable counters
4294  返回:ret
调用者
名称描述
get_page_from_freelistget_page_from_freelist goes through the zonelist trying to allocate* a page.