函数逻辑报告 |
Source Code:mm\hugetlb.c |
Create Date:2022-07-27 16:59:42 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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_hstate则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) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |