函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Prepare kswapd for sleeping. This verifies that there are no processes* waiting in throttle_direct_reclaim() and that watermarks have been met.* Returns true if kswapd is ready to sleep

函数原型:static bool prepare_kswapd_sleep(pg_data_t *pgdat, int order, int classzone_idx)

返回类型:bool

参数:

类型参数名称
pg_data_t *pgdat
intorder
intclasszone_idx
3499  如果waitqueue_active -- locklessly test for waiters on the queue*@wq_head: the waitqueue to test for waiters* returns true if the wait list is not empty* NOTE: this function is lockless and requires care, incorrect usage _will_wake_up_all( & pfmemalloc_wait)
3503  如果 Number of 'reclaimed == 0' runs 大于等于Maximum number of reclaim retries without progress before the OOM* killer is consider the only way forward.则返回:true
3506  如果Returns true if there is an eligible zone balanced for the request order* and classzone_idx
3507  Clear pgdat state for congested, dirty or under writeback.
3508  返回:true
3511  返回:false
调用者
名称描述
kswapd_try_to_sleep