函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alloc_mem_cgroup_per_node_info

函数原型:static int alloc_mem_cgroup_per_node_info(struct mem_cgroup *memcg, int node)

返回类型:int

参数:

类型参数名称
struct mem_cgroup *memcg
intnode
4832  tmp等于node
4841  如果非node_state(node, N_NORMAL_MEMORY)则tmp等于负1
4843  pn等于根据内存节点分配内存
4844  如果非pn则返回:1
4847  Legacy local VM stats 等于alloc_percpu(structlruvec_stat)
4848  如果非Legacy local VM stats
4849  释放内存
4850  返回:1
4853  Subtree VM stats (batched updates) 等于alloc_percpu(structlruvec_stat)
4854  如果非Subtree VM stats (batched updates)
4855  释放内存
4856  释放内存
4857  返回:1
4860  lruvec_init( & lruvec)
4861  Set to the value by which 等于0
4862  he soft limit is exceeded = false
4863  Back pointer, we cannot 等于memcg
4865  nodeinfo[node]等于pn
4866  返回:0
调用者
名称描述
mem_cgroup_alloc