Function report |
Source Code:mm\list_lru.c |
Create Date:2022-07-28 14:32:40 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__list_lru_walk_one
Proto:static unsigned long __list_lru_walk_one(struct list_lru_node *nlru, int memcg_idx, list_lru_walk_cb isolate, void *cb_arg, unsigned long *nr_to_walk)
Type:unsigned long
Parameter:
Type | Parameter | Name |
---|---|---|
struct list_lru_node * | nlru | |
int | memcg_idx | |
list_lru_walk_cb | isolate | |
void * | cb_arg | |
unsigned long * | nr_to_walk |
217 | isolated = 0 |
219 | l = list_lru_from_memcg_idx(nlru, memcg_idx) |
220 | restart : |
228 | If Not nr_to_walk Then Break |
230 | --nr_to_walk |
237 | Case ret == m removed from list |
238 | isolated++ |
239 | nr_items-- |
245 | If ret == m removed, but lock has beendropped and reacquired Then Go to restart |
247 | Break |
248 | Case ret == m referenced, give another pass |
251 | Case ret == m cannot be locked, skip |
252 | Break |
259 | Go to restart |
260 | Default |
261 | BUG() |
264 | Return isolated |
Name | Describe |
---|---|
list_lru_walk_one | |
list_lru_walk_one_irq | |
list_lru_walk_node |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |