Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\list_lru.c Create Date:2022-07-28 14:32:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:list_lru_walk_node

Proto:unsigned long list_lru_walk_node(struct list_lru *lru, int nid, list_lru_walk_cb isolate, void *cb_arg, unsigned long *nr_to_walk)

Type:unsigned long

Parameter:

TypeParameterName
struct list_lru *lru
intnid
list_lru_walk_cbisolate
void *cb_arg
unsigned long *nr_to_walk
302  isolated = 0
305  isolated += list_lru_walk_one(lru, nid, NULL, isolate, cb_arg, nr_to_walk)
307  If nr_to_walk > 0 && list_lru_memcg_aware(lru) Then
309  nlru = node[nid]
311  spin_lock( & protects all lists on the node, including per cgroup )
312  isolated += __list_lru_walk_one(nlru, memcg_idx, isolate, cb_arg, nr_to_walk)
315  spin_unlock( & protects all lists on the node, including per cgroup )
317  If nr_to_walk <= 0 Then Break
321  Return isolated
Caller
NameDescribe
list_lru_walk