Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:surplus_hugepages_show

Proto:static ssize_t surplus_hugepages_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)

Type:ssize_t

Parameter:

TypeParameterName
struct kobject *kobj
struct kobj_attribute *attr
char *buf
2620  h = kobj_to_hstate(kobj, & nid)
2621  If nid == NUMA_NO_NODE Then surplus_huge_pages = surplus_huge_pages
2623  Else surplus_huge_pages = surplus_huge_pages_node[nid]
2626  Return sprintf(buf, "%lu\n", surplus_huge_pages)