函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:set_task_reclaim_state

函数原型:static void set_task_reclaim_state(struct task_struct *task, struct reclaim_state *rs)

返回类型:void

参数:

类型参数名称
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
调用者
名称描述
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.