Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:drain_local_stock

Proto:static void drain_local_stock(struct work_struct *dummy)

Type:void

Parameter:

TypeParameterName
struct work_struct *dummy
2103  local_irq_save(flags)
2105  stock = this_cpu_ptr( & memcg_stock)
2106  Returns stocks cached in percpu and reset cached information.
2107  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
2109  local_irq_restore(flags)
Caller
NameDescribe
drain_all_stockDrains all per-CPU charge caches for given root_memcg resp. subtree* of the hierarchy under it.