Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Return the number pages of memory we physically have, in PAGE_SIZE units.

Proto:unsigned long hugetlb_total_pages(void)

Type:unsigned long

Parameter:Nothing

3112  nr_total_pages = 0
3114  for_each_hstate(h)
3115  nr_total_pages += nr_huge_pages * pages_per_huge_page(h)
3116  Return nr_total_pages