Function report |
Source Code:mm\hugetlb_cgroup.c |
Create Date:2022-07-28 16:16:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Force the hugetlb cgroup to empty the hugetlb resources by moving them to* the parent cgroup.
Proto:static void hugetlb_cgroup_css_offline(struct cgroup_subsys_state *css)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct cgroup_subsys_state * | css |
163 | h_cg = hugetlb_cgroup_from_css(css) |
166 | idx = 0 |
168 | Do |
170 | spin_lock( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.) |
174 | spin_unlock( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.) |
175 | idx++ |
177 | cond_resched() |
178 | When hugetlb_cgroup_have_usage(h_cg) cycle |
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 |