函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mem_cgroup_event_ratelimit

函数原型:static bool mem_cgroup_event_ratelimit(struct mem_cgroup *memcg, enum mem_cgroup_events_target target)

返回类型:bool

参数:

类型参数名称
struct mem_cgroup *memcg
enum mem_cgroup_events_targettarget
862  val等于Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(nr_page_events)
863  next等于Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(targets[target])
865  如果nextval小于0则
869  退出
872  退出
873  默认
874  退出
876  __this_cpu_write(targets[target], next)
877  返回:true
879  返回:false
调用者
名称描述
memcg_check_eventsCheck events in order.