Function report |
Source Code:mm\memcontrol.c |
Create Date:2022-07-28 16:12:06 |
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_usage_unregister_event
Proto:static void __mem_cgroup_usage_unregister_event(struct mem_cgroup *memcg, struct eventfd_ctx *eventfd, enum res_type type)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct mem_cgroup * | memcg | |
struct eventfd_ctx * | eventfd | |
enum res_type | type |
4032 | mutex_lock( & protect arrays of thresholds ) |
4036 | usage = mem_cgroup_usage(memcg, false) |
4039 | usage = mem_cgroup_usage(memcg, true) |
4040 | Else BUG() |
4043 | If Not Primary thresholds array Then Go to unlock |
4047 | __mem_cgroup_threshold(memcg, type == _MEMSWAP) |
4050 | size = 0 |
4051 | When i < Size of entries[] cycle |
4056 | new = * Spare threshold array. * This is needed to make mem_cgroup_unregister_event() "never fail". * It must be able to store at least primary->size - 1 entries. |
4059 | If Not size Then |
4065 | Size of entries[] = size |
4069 | When i < Size of entries[] cycle |
4073 | Array of thresholds [j] = Array of thresholds [i] |
4082 | j++ |
4085 | swap_buffers : |
4087 | * Spare threshold array. * This is needed to make mem_cgroup_unregister_event() "never fail". * It must be able to store at least primary->size - 1 entries. = Primary thresholds array |
4095 | If Not new Then |
4099 | unlock : |
Name | Describe |
---|---|
mem_cgroup_usage_unregister_event | |
memsw_cgroup_usage_unregister_event |
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 |