Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\hugetlb.c Create Date:2022-07-28 15:26:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__alloc_bootmem_huge_page

Proto:int __alloc_bootmem_huge_page(struct hstate *h)

Type:int

Parameter:

TypeParameterName
struct hstate *h
2108  addr = memblock_alloc_try_nid_raw - allocate boot memory block without zeroing* memory and without panicking*@size: size of memory block to be allocated in bytes*@align: alignment of the region and block's size*@min_addr: the lower bound of the memory region
2111  If addr Then
2117  m = addr
2118  Go to found
2121  Return 0
2123  found :
2124  BUG_ON(!IS_ALIGNED(virt_to_phys - map virtual addresses to physical*@address: address to remap* The returned physical address is the physical (CPU) mapping for* the memory address given. It is only valid to use this function on, huge_page_size(h)))
2126  Initialization list head
2127  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
2128  hstate = h
2129  Return 1