| Function report | 
| Source Code: mm\hugetlb.c | Create Date:2022-07-28 15:27:47 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:hugetlb_add_hstate
Proto:void __init hugetlb_add_hstate(unsigned int order)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned int | order | 
| 2883 | If size_to_hstate(PAGE_SIZE << order) Then | 
| 2884 | pr_warn("hugepagesz= specified twice, ignoring\n") | 
| 2885 | Return | 
| 2887 | BUG_ON(hugetlb_max_hstate >= HUGE_MAX_HSTATE) | 
| 2889 | h = hstates[hugetlb_max_hstate++] | 
| 2891 | mask = ~((1ULL << order + PAGE_SHIFT determines the page size ) - 1) | 
| 2892 | nr_huge_pages = 0 | 
| 2893 | free_huge_pages = 0 | 
| 2894 | When i < MAX_NUMNODES cycle Initialization list head | 
| 2902 | r command line parsing = h | 
| Name | Describe | 
|---|---|
| hugetlb_init | 
| 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 |