Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hugetlb_add_hstate

Proto:void __init hugetlb_add_hstate(unsigned int order)

Type:void

Parameter:

TypeParameterName
unsigned intorder
2883  If size_to_hstate(PAGE_SIZE << order) Then
2884  pr_warn("hugepagesz= specified twice, ignoring\n")
2885  Return
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 << order + PAGE_SHIFT determines the page size ) - 1)
2892  nr_huge_pages = 0
2893  free_huge_pages = 0
2894  When i < MAX_NUMNODES cycle Initialization list head
2896  Initialization list head
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
Caller
NameDescribe
hugetlb_init