Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:list_lru_walk_one

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

Type:unsigned long

Parameter:

TypeParameterName
struct list_lru *lru
intnid
struct mem_cgroup *memcg
list_lru_walk_cbisolate
void *cb_arg
unsigned long *nr_to_walk
272  nlru = node[nid]
275  spin_lock( & protects all lists on the node, including per cgroup )
276  ret = __list_lru_walk_one(nlru, memcg_cache_id(memcg), isolate, cb_arg, nr_to_walk)
278  spin_unlock( & protects all lists on the node, including per cgroup )
279  Return ret
Caller
NameDescribe
list_lru_walk_node
list_lru_shrink_walk