函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\list_lru.c Create Date:2022-07-27 15:57:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:list_lru_walk_node

函数原型: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)

返回类型:unsigned long

参数:

类型参数名称
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  如果nr_to_walk大于0且list_lru_memcg_aware(lru)则
309  nlru等于node[nid]
311  加自旋锁
312  isolated加等于__list_lru_walk_one(nlru, memcg_idx, isolate, cb_arg, nr_to_walk)
315  自旋锁解锁
317  如果nr_to_walk小于等于0则退出
321  返回:isolated
调用者
名称描述
list_lru_walk