Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hugetlb_nrpages_setup

Proto:static int __init hugetlb_nrpages_setup(char *s)

Type:int

Parameter:

TypeParameterName
char *s
2910  If Not parsed_valid_hugepagesz Then
2911  pr_warn("hugepages = %s preceded by an unsupported hugepagesz, ignoring\n", s)
2913  parsed_valid_hugepagesz = true
2914  Return 1
2920  Else if Not hugetlb_max_hstate Then mhp = default_hstate_max_huge_pages
2922  Else mhp = max_huge_pages
2925  If mhp == last_mhp Then
2926  pr_warn("hugepages= specified twice without interleaving hugepagesz=, ignoring\n")
2927  Return 1
2930  If sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments <= 0 Then mhp = 0
2938  If hugetlb_max_hstate && order >= Free memory management - zoned buddy allocator. Then hugetlb_hstate_alloc_pages(r command line parsing )
2941  last_mhp = mhp
2943  Return 1