Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\list_lru.h Create Date:2022-07-28 05:42:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:list_lru_walk

Proto:static inline unsigned long list_lru_walk(struct list_lru *lru, list_lru_walk_cb isolate, void *cb_arg, unsigned long nr_to_walk)

Type:unsigned long

Parameter:

TypeParameterName
struct list_lru *lru
list_lru_walk_cbisolate
void *cb_arg
unsigned longnr_to_walk
211  isolated = 0
214  for_each_node_state(nid, The node has regular memory )
215  isolated += list_lru_walk_node(lru, nid, isolate, cb_arg, & nr_to_walk)
217  If nr_to_walk <= 0 Then Break
220  Return isolated
Caller
NameDescribe
shrink_dcache_sbshrink dcache for a superblock