函数逻辑报告

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

函数名称:dx can be of type enum memcg_stat_item or node_stat_item

函数原型:static inline void mod_memcg_state(struct mem_cgroup *memcg, int idx, int val)

返回类型:void

参数:

类型参数名称
struct mem_cgroup *memcg
intidx
intval
621  local_irq_save(flags)
622  __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
623  local_irq_restore(flags)
调用者
名称描述
mem_cgroup_move_swap_accountmem_cgroup_move_swap_account - move swap charge and swap_cgroup's record
mem_cgroup_charge_skmemmem_cgroup_charge_skmem - charge socket memory*@memcg: memcg to charge*@nr_pages: number of pages to charge* Charges @nr_pages to @memcg. Returns %true if the charge fit within*@memcg's configured limit, %false if the charge had to be forced.
mem_cgroup_uncharge_skmemmem_cgroup_uncharge_skmem - uncharge socket memory*@memcg: memcg to uncharge*@nr_pages: number of pages to uncharge
mem_cgroup_swapoutmem_cgroup_swapout - transfer a memsw charge to swap*@page: page whose memsw charge to transfer*@entry: swap entry to move the charge to* Transfer the memsw charge of @page to @entry.
mem_cgroup_try_charge_swapmem_cgroup_try_charge_swap - try charging swap space for a page*@page: page being added to swap*@entry: swap entry to charge* Try to charge @page's memcg for the swap space at @entry.* Returns 0 on success, -ENOMEM on failure.
mem_cgroup_uncharge_swapmem_cgroup_uncharge_swap - uncharge swap space*@entry: swap entry to uncharge*@nr_pages: the amount of swap space to uncharge
mod_memcg_page_state
inc_memcg_statedx can be of type enum memcg_stat_item or node_stat_item
dec_memcg_statedx can be of type enum memcg_stat_item or node_stat_item