Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hugetlb_report_meminfo

Proto:void hugetlb_report_meminfo(struct seq_file *m)

Type:void

Parameter:

TypeParameterName
struct seq_file *m
3043  total = 0
3045  If Not hugepages_supported() Then Return
3049  count = nr_huge_pages
3051  total += (PAGE_SIZE << huge_page_order(h)) * count
3053  If h == default_hstate Then seq_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)