函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:memcg_memory_event

函数原型:static inline void memcg_memory_event(struct mem_cgroup *memcg, enum memcg_memory_event event)

返回类型:void

参数:

类型参数名称
struct mem_cgroup *memcg
enum memcg_memory_eventevent
778  atomic_long_inc( & memory_events_local[event])
779  group_file_notify - generate a file modified event for a cgroup_file*@cfile: target cgroup_file*@cfile must have been obtained by setting cftype->file_offset.
781  循环
782  atomic_long_inc( & memory.events [event])
783  group_file_notify - generate a file modified event for a cgroup_file*@cfile: target cgroup_file*@cfile must have been obtained by setting cftype->file_offset.
785  如果 Hierarchy-specific flags 按位与CGRP_ROOT_MEMORY_LOCAL_EVENTS退出
787 memcg等于parent_mem_cgroup - find the accounting parent of a memcg*@memcg: memcg whose parent to find* Returns the parent memcg, or NULL if this is the root or the memory* controller is in legacy no-hierarchy mode.且非mem_cgroup_is_root(memcg)循环
调用者
名称描述
shrink_node_memcgs
mem_cgroup_oom
reclaim_high
try_charge
memory_max_write
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.
memcg_memory_event_mm