Function report |
Source Code:mm\hugetlb_cgroup.c |
Create Date:2022-07-28 16:16:15 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:hugetlb_cgroup_charge_cgroup
Proto:int hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages, struct hugetlb_cgroup **ptr)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | idx | |
| unsigned long | nr_pages | |
| struct hugetlb_cgroup ** | ptr |
| 184 | ret = 0 |
| 186 | struct hugetlb_cgroup * h_cg = NULL |
| 188 | If hugetlb_cgroup_disabled() Then Go to done |
| 194 | If huge_page_order( & hstates[idx]) < Minimum page order trackable by hugetlb cgroup.* At least 3 pages are necessary for all the tracking information. Then Go to done |
| 196 | again : |
| 201 | Go to again |
| 208 | done : |
| 210 | Return ret |
| Name | Describe |
|---|---|
| alloc_huge_page |
| 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 |