Function report | 
Source Code:mm\hugetlb.c | 
Create Date:2022-07-28 15:27:02 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:hugetlb_hstate_alloc_pages
Proto:static void __init hugetlb_hstate_alloc_pages(struct hstate *h)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct hstate * | h | 
| 2173 | If Not hstate_is_gigantic(h) Then | 
| 2180 | node_alloc_noretry = kmalloc( size of node_alloc_noretry , GFP_KERNEL) | 
| 2182 | Else | 
| 2184 | node_alloc_noretry = NULL | 
| 2188 | If node_alloc_noretry Then nodes_clear( * node_alloc_noretry) | 
| 2191 | When i < max_huge_pages cycle | 
| 2192 | If hstate_is_gigantic(h) Then | 
| 2193 | If Not alloc_bootmem_huge_page(h) Then Break | 
| 2195 | Else if Not Allocates a fresh page to the hugetlb allocator pool in the node interleaved* manner. Then Break | 
| 2199 | cond_resched() | 
| 2201 | If i < max_huge_pages Then | 
| 2205 | pr_warn("HugeTLB: allocating %lu of page size %s failed. Only allocated %lu hugepages.\n", max_huge_pages, buf, i) | 
| 2207 | max_huge_pages = i | 
| 2210 | kfree(node_alloc_noretry) | 
| Name | Describe | 
|---|---|
| hugetlb_init_hstates | |
| hugetlb_nrpages_setup | 
| 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  |