Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:hugetlb_hstate_alloc_pages

Proto:static void __init hugetlb_hstate_alloc_pages(struct hstate *h)

Type:void

Parameter:

TypeParameterName
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
2204  string_get_size - get the size in the specified units*@size: The size to be converted in blocks*@blk_size: Size of the block (use 1 for size in bytes)*@units: units to use (powers of 1000 or 1024)*@buf: buffer to format to*@len: length of buffer* This
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)
Caller
NameDescribe
hugetlb_init_hstates
hugetlb_nrpages_setup