Function report |
Source Code:mm\memcontrol.c |
Create Date:2022-07-28 16:09:27 |
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_iter - iterate over memory cgroup hierarchy*@root: hierarchy root*@prev: previously returned memcg, NULL on first invocation*@reclaim: cookie for shared reclaim walks, NULL for full walks* Returns references to children of the hierarchy below
Proto:struct mem_cgroup *mem_cgroup_iter(struct mem_cgroup *root, struct mem_cgroup *prev, struct mem_cgroup_reclaim_cookie *reclaim)
Type:struct mem_cgroup
Parameter:
Type | Parameter | Name |
---|---|---|
struct mem_cgroup * | root | |
struct mem_cgroup * | prev | |
struct mem_cgroup_reclaim_cookie * | reclaim |
1011 | struct cgroup_subsys_state * css = NULL |
1012 | struct mem_cgroup * memcg = NULL |
1013 | struct mem_cgroup * pos = NULL |
1015 | If mem_cgroup_disabled() Then Return NULL |
1018 | If Not root Then root = root_mem_cgroup |
1024 | If Not * Should the accounting and control be hierarchical, per subtree? && root != root_mem_cgroup Then |
1032 | If reclaim Then |
1035 | mz = mem_cgroup_nodeinfo(root, node_id) |
1038 | If prev && generation != scan generation, increased every round-trip Then Go to out_unlock |
1041 | When 1 cycle |
1060 | cycle |
1062 | If Not css Then |
1069 | If Not prev Then Continue |
1071 | Break |
1079 | memcg = mem_cgroup_from_css(css) |
1087 | memcg = NULL |
1090 | If reclaim Then |
1098 | If pos Then ss_put - put a css reference*@css: target css* Put a reference obtained via css_get() and css_tryget_online(). |
1101 | If Not memcg Then scan generation, increased every round-trip ++ |
1103 | Else if Not prev Then generation = scan generation, increased every round-trip |
1107 | out_unlock : |
1109 | out : |
1110 | If prev && prev != root Then ss_put - put a css reference*@css: target css* Put a reference obtained via css_get() and css_tryget_online(). |
1113 | Return memcg |
Name | Describe |
---|---|
drop_slab_node | |
shrink_node_memcgs | |
age_active_anon | |
mem_cgroup_soft_reclaim |
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 |