Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct mem_cgroup * | memcg | |
enum mem_cgroup_events_target | target |
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]) |
867 | Case target == MEM_CGROUP_TARGET_THRESH |
868 | next = val + THRESHOLDS_EVENTS_TARGET |
869 | Break |
870 | Case target == MEM_CGROUP_TARGET_SOFTLIMIT |
871 | next = val + SOFTLIMIT_EVENTS_TARGET |
872 | Break |
873 | Default |
874 | Break |
876 | __this_cpu_write(targets[target], next) |
877 | Return true |
879 | Return false |
Name | Describe |
---|---|
memcg_check_events | Check events in order. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |