Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static bool prepare_kswapd_sleep(pg_data_t *pgdat, int order, int classzone_idx)

Type:bool

Parameter:

TypeParameterName
pg_data_t *pgdat
intorder
intclasszone_idx
3499  If 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_ Then wake_up_all( & pfmemalloc_wait)
3503  If Number of 'reclaimed == 0' runs >= Maximum number of reclaim retries without progress before the OOM* killer is consider the only way forward. Then Return true
3506  If Returns true if there is an eligible zone balanced for the request order* and classzone_idx Then
3507  Clear pgdat state for congested, dirty or under writeback.
3508  Return true
3511  Return false
Caller
NameDescribe
kswapd_try_to_sleep