函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__mem_cgroup_insert_exceeded

函数原型:static void __mem_cgroup_insert_exceeded(struct mem_cgroup_per_node *mz, struct mem_cgroup_tree_per_node *mctz, unsigned long new_usage_in_excess)

返回类型:void

参数:

类型参数名称
struct mem_cgroup_per_node *mz
struct mem_cgroup_tree_per_node *mctz
unsigned longnew_usage_in_excess
518  p等于rb_node
519  struct rb_node * parent = NULL
521  bool rightmost = true
523  如果he soft limit is exceeded则返回
526  Set to the value by which 等于new_usage_in_excess
527  如果非Set to the value by which 则返回
529 p循环
530  parent等于p
531  mz_node等于rb_entry(parent, structmem_cgroup_per_node, tree_node)
534  p等于rb_left
535  rightmost = false
542  否则如果Set to the value by which 大于等于Set to the value by which p等于rb_right
546  如果rightmostrb_rightmost等于RB tree node
549  rb_link_node( & RB tree node , parent, p)
550  rb_insert_color( & RB tree node , & rb_root)
551  he soft limit is exceeded = true
调用者
名称描述
mem_cgroup_update_tree
mem_cgroup_soft_limit_reclaim