函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:surplus_hugepages_show

函数原型:static ssize_t surplus_hugepages_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)

返回类型:ssize_t

参数:

类型参数名称
struct kobject *kobj
struct kobj_attribute *attr
char *buf
2620  h等于kobj_to_hstate(kobj, & nid)
2621  如果nid恒等于NUMA_NO_NODEsurplus_huge_pages等于surplus_huge_pages
2623  否则surplus_huge_pages等于surplus_huge_pages_node[nid]
2626  返回:输出格式化串