函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mod_memcg_page_state - update page state statistics*@page: the page*@idx: page state item to account*@val: number of pages (positive or negative)* The @page must be locked or the caller must use lock_page_memcg()* to prevent double accounting when the

函数原型:static inline void __mod_memcg_page_state(struct page *page, int idx, int val)

返回类型:void

参数:

类型参数名称
struct page *page
intidx
intval
646  如果mem_cgroup__mod_memcg_state - update cgroup memory statistics*@memcg: the memory cgroup*@idx: the stat item - can be enum memcg_stat_item or enum node_stat_item*@val: delta to add to the counter, can be negative
调用者
名称描述
__inc_memcg_page_statedx can be of type enum memcg_stat_item or node_stat_item
__dec_memcg_page_statedx can be of type enum memcg_stat_item or node_stat_item