函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static inline struct mem_cgroup *parent_mem_cgroup(struct mem_cgroup *memcg)

返回类型:struct mem_cgroup

参数:

类型参数名称
struct mem_cgroup *memcg
482  如果非parent则返回:NULL
484  返回:mem_cgroup_from_counter(parent, memory)
调用者
名称描述
advance_inactive_age
page_cgroup_inopage_cgroup_ino - return inode number of the memcg a page is charged to*@page: the page* Look up the closest online ancestor of the memory cgroup @page is charged to* and return its inode number or 0 if @page is not charged to any cgroup. It
mem_cgroup_update_tree
__mod_memcg_state__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
parent_nodeinfo
__count_memcg_events__count_memcg_events - account VM events in a cgroup*@memcg: the memory cgroup*@idx: the event item*@count: the number of events that occured
invalidate_reclaim_iterators
mem_cgroup_get_oom_groupmem_cgroup_get_oom_group - get a memory cgroup to clean up after OOM*@victim: task to be killed by the OOM killer*@oom_domain: memcg in case of memcg OOM, NULL in case of system-wide OOM* Returns a pointer to a memory cgroup, which has to be cleaned up
memcg_hotplug_cpu_dead
reclaim_high
try_charge
memcg_flush_percpu_vmstats
memcg_flush_percpu_vmevents
memcg_stat_show
mem_cgroup_threshold
mem_cgroup_protectedmem_cgroup_protected - check if memory consumption is in the normal range*@root: the top ancestor of the sub-tree being checked*@memcg: the memory cgroup to check* WARNING: This function is not stateless! It can only be used as part
mem_cgroup_id_get_online
mem_cgroup_get_nr_swap_pages
mem_cgroup_swap_full
vmpressure_parent
memcg_memory_event
mem_cgroup_under_socket_pressure