函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\hugetlb.c Create Date:2022-07-27 16:58:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__alloc_bootmem_huge_page

函数原型:int __alloc_bootmem_huge_page(struct hstate *h)

返回类型:int

参数:

类型参数名称
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  如果addr
2117  m等于addr
2118  转到:found
2121  返回: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  初始化链表头
2127  添加链表项
2128  hstate等于h
2129  返回:1