| Function report | 
| Source Code: mm\hugetlb_cgroup.c | Create Date:2022-07-28 16:16:11 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Should be called with hugetlb_lock held.* Since we are holding hugetlb_lock, pages cannot get moved from* active list or uncharged from the cgroup, So no need to get* page reference and test for page active here. This function* cannot fail.
Proto:static void hugetlb_cgroup_move_parent(int idx, struct hugetlb_cgroup *h_cg, struct page *page)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| int | idx | |
| struct hugetlb_cgroup * | h_cg | |
| struct page * | page | 
| 131 | parent = parent_hugetlb_cgroup(h_cg) | 
| 133 | page_hcg = hugetlb_cgroup_from_page(page) | 
| 143 | If Not parent Then | 
| 144 | parent = root_h_cgroup | 
| 152 | set_hugetlb_cgroup(page, parent) | 
| 153 | out : | 
| 154 | Return | 
| Name | Describe | 
|---|---|
| hugetlb_cgroup_css_offline | Force the hugetlb cgroup to empty the hugetlb resources by moving them to* the parent cgroup. | 
| 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 |