函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hugetlb_nrpages_setup

函数原型:static int __init hugetlb_nrpages_setup(char *s)

返回类型:int

参数:

类型参数名称
char *s
2910  如果非parsed_valid_hugepagesz
2911  打印警告信息("hugepages = %s preceded by an unsupported hugepagesz, ignoring\n", s)
2913  parsed_valid_hugepagesz = true
2914  返回:1
2920  否则如果非hugetlb_max_hstatemhp等于default_hstate_max_huge_pages
2922  否则mhp等于max_huge_pages
2925  如果mhp恒等于last_mhp
2926  打印警告信息("hugepages= specified twice without interleaving hugepagesz=, ignoring\n")
2927  返回:1
2930  如果sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments小于等于0则mhp等于0
2938  如果hugetlb_max_hstateorder大于等于Free memory management - zoned buddy allocator. hugetlb_hstate_alloc_pages(r command line parsing )
2941  last_mhp等于mhp
2943  返回:1