函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__list_lru_init

函数原型:int __list_lru_init(struct list_lru *lru, bool memcg_aware, struct lock_class_key *key, struct shrinker *shrinker)

返回类型:int

参数:

类型参数名称
struct list_lru *lru
boolmemcg_aware
struct lock_class_key *key
struct shrinker *shrinker
604  err等于负ENOMEM
612  memcg_get_cache_ids()
614  node等于分配数组内存并置零
615  如果非node则转到:out
618  for_each_node(i)
619  spin_lock_init( & protects all lists on the node, including per cgroup )
620  如果keylockdep_set_class( & protects all lists on the node, including per cgroup , key)
622  init_one_lru( & global list, used for the root cgroup in cgroup aware lrus )
625  err等于memcg_init_list_lru(lru, memcg_aware)
626  如果err
627  释放内存
629  node = NULL
630  转到:out
633  list_lru_register(lru)
634  out :
635  memcg_put_cache_ids()
636  返回:err
调用者
名称描述
workingset_init