函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hugetlb_init

函数原型:static int __init hugetlb_init(void)

返回类型:int

参数:

2829  如果非hugepages_supported()则返回:0
2832  如果非size_to_hstate(default_hstate_size)则
2833  如果default_hstate_size不等于0则
2834  打印错误信息("HugeTLB: unsupported default_hugepagesz %lu. Reverting to %lu\n", default_hstate_size, HPAGE_SIZE)
2838  default_hstate_size等于HPAGE_SIZE
2839  如果非size_to_hstate(default_hstate_size)则hugetlb_add_hstate(HUGETLB_PAGE_ORDER)
2842  default_hstate_idx等于hstate_index(size_to_hstate(default_hstate_size))
2843  如果default_hstate_max_huge_pages
2844  如果非max_huge_pagesmax_huge_pages等于default_hstate_max_huge_pages
2848  hugetlb_init_hstates()
2849  Put bootmem huge pages into the standard lists after mem_map is up
2850  report_hugepages()
2852  hugetlb_sysfs_init()
2853  hugetlb init time: register hstate attributes for all registered node* devices of nodes that have memory. All on-line nodes should have* registered their associated device by this time.
2854  hugetlb_cgroup_file_init()
2859  Serializes faults on the same logical page. This is used to* prevent spurious OOMs when the hugepage pool is fully utilized.等于1
2861  hugetlb_fault_mutex_table等于分配数组内存
2864  BUG_ON(!hugetlb_fault_mutex_table)
2866 i小于Serializes faults on the same logical page. This is used to* prevent spurious OOMs when the hugepage pool is fully utilized.循环mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & hugetlb_fault_mutex_table[i])
2868  返回:0