函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Returns stocks cached in percpu and reset cached information.

函数原型:static void drain_stock(struct memcg_stock_pcp *stock)

返回类型:void

参数:

类型参数名称
struct memcg_stock_pcp *stock
2082  old等于 this never be root cgroup
2084  如果nr_pages
2085  page_counter_uncharge - hierarchically uncharge pages*@counter: counter*@nr_pages: number of pages to uncharge
2086  如果Whether legacy memory+swap accounting is active page_counter_uncharge - hierarchically uncharge pages*@counter: counter*@nr_pages: number of pages to uncharge
2088  设置一个css引用
2089  nr_pages等于0
2091  this never be root cgroup = NULL
调用者
名称描述
drain_local_stock
refill_stockCache charges(val) to local per_cpu area.* This will be consumed by consume_stock() function, later.
memcg_hotplug_cpu_dead