Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-28 16:09:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mem_cgroup_event_ratelimit

Proto:static bool mem_cgroup_event_ratelimit(struct mem_cgroup *memcg, enum mem_cgroup_events_target target)

Type:bool

Parameter:

TypeParameterName
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  If next - val < 0 Then
869  Break
872  Break
873  Default
874  Break
876  __this_cpu_write(targets[target], next)
877  Return true
879  Return false
Caller
NameDescribe
memcg_check_eventsCheck events in order.