Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\memcontrol.h Create Date:2022-07-28 05:57:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:memcg_memory_event

Proto:static inline void memcg_memory_event(struct mem_cgroup *memcg, enum memcg_memory_event event)

Type:void

Parameter:

TypeParameterName
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  Do
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  If Hierarchy-specific flags & CGRP_ROOT_MEMORY_LOCAL_EVENTS Then Break
787  When (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.) && Not mem_cgroup_is_root(memcg) cycle
Caller
NameDescribe
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.