函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hugetlb_add_hstate

函数原型:void __init hugetlb_add_hstate(unsigned int order)

返回类型:void

参数:

类型参数名称
unsigned intorder
2883  如果size_to_hstate(PAGE_SIZE << order)则
2884  打印警告信息("hugepagesz= specified twice, ignoring\n")
2885  返回
2887  BUG_ON(hugetlb_max_hstate >= HUGE_MAX_HSTATE)
2888  BUG_ON(order == 0)
2889  h等于hstates[hugetlb_max_hstate++]
2890  order等于order
2891  mask等于1ULL左移orderPAGE_SHIFT determines the page size 位的值减1的差的反
2892  nr_huge_pages等于0
2893  free_huge_pages等于0
2894 i小于MAX_NUMNODES循环初始化链表头
2896  初始化链表头
2897  next_nid_to_alloc等于first_memory_node
2898  next_nid_to_free等于first_memory_node
2899  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
2902  r command line parsing 等于h
调用者
名称描述
hugetlb_init