Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-28 16:10:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Returns stocks cached in percpu and reset cached information.

Proto:static void drain_stock(struct memcg_stock_pcp *stock)

Type:void

Parameter:

TypeParameterName
struct memcg_stock_pcp *stock
2082  old = this never be root cgroup
2084  If nr_pages Then
2085  page_counter_uncharge - hierarchically uncharge pages*@counter: counter*@nr_pages: number of pages to uncharge
2086  If Whether legacy memory+swap accounting is active Then page_counter_uncharge - hierarchically uncharge pages*@counter: counter*@nr_pages: number of pages to uncharge
2088  ss_put_many - put css references*@css: target css*@n: number of references to put* Put references obtained via css_get() and css_tryget_online().
2089  nr_pages = 0
2091  this never be root cgroup = NULL
Caller
NameDescribe
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