函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:drain_local_stock

函数原型:static void drain_local_stock(struct work_struct *dummy)

返回类型:void

参数:

类型参数名称
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)
调用者
名称描述
drain_all_stockDrains all per-CPU charge caches for given root_memcg resp. subtree* of the hierarchy under it.