| Function report | 
| Source Code: mm\hugetlb.c | Create Date:2022-07-28 15:27:44 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:hugetlb_init
Proto:static int __init hugetlb_init(void)
Type:int
Parameter:Nothing
| 2829 | If Not hugepages_supported() Then Return 0 | 
| 2832 | If Not size_to_hstate(default_hstate_size) Then | 
| 2833 | If default_hstate_size != 0 Then | 
| 2834 | pr_err("HugeTLB: unsupported default_hugepagesz %lu. Reverting to %lu\n", default_hstate_size, HPAGE_SIZE) | 
| 2838 | default_hstate_size = HPAGE_SIZE | 
| 2839 | If Not size_to_hstate(default_hstate_size) Then hugetlb_add_hstate(HUGETLB_PAGE_ORDER) | 
| 2843 | If default_hstate_max_huge_pages Then | 
| 2844 | If Not max_huge_pages Then max_huge_pages = default_hstate_max_huge_pages | 
| 2848 | hugetlb_init_hstates() | 
| 2850 | report_hugepages() | 
| 2852 | hugetlb_sysfs_init() | 
| 2854 | hugetlb_cgroup_file_init() | 
| 2861 | hugetlb_fault_mutex_table = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). | 
| 2864 | BUG_ON(!hugetlb_fault_mutex_table) | 
| 2868 | Return 0 | 
| 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 |