函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hugetlb_report_meminfo

函数原型:void hugetlb_report_meminfo(struct seq_file *m)

返回类型:void

参数:

类型参数名称
struct seq_file *m
3043  total等于0
3045  如果非hugepages_supported()则返回
3049  count等于nr_huge_pages
3051  total加等于PAGE_SIZE左移huge_page_order(h)位的值乘count
3053  如果h恒等于default_hstateseq_printf(m, "HugePages_Total: %5lu\nHugePages_Free: %5lu\nHugePages_Rsvd: %5lu\nHugePages_Surp: %5lu\nHugepagesize: %8lu kB\n", count, free_huge_pages, resv_huge_pages, surplus_huge_pages, (PAGE_SIZE << huge_page_order(h)) / 1024)
3067  seq_printf(m, "Hugetlb: %8lu kB\n", total / 1024)