Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:set_task_reclaim_state

Proto:static void set_task_reclaim_state(struct task_struct *task, struct reclaim_state *rs)

Type:void

Parameter:

TypeParameterName
struct task_struct *task
struct reclaim_state *rs
191  WARN_ON_ONCE(rs && reclaim_state)
194  WARN_ON_ONCE(!rs && !reclaim_state)
196  reclaim_state = rs
Caller
NameDescribe
try_to_free_pages
try_to_free_mem_cgroup_pages
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.
__node_reclaimTry to free up some pages from this node through reclaim.