函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:nr_hugepages_show_common

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

返回类型:ssize_t

参数:

类型参数名称
struct kobject *kobj
struct kobj_attribute *attr
char *buf
2466  h等于kobj_to_hstate(kobj, & nid)
2467  如果nid恒等于NUMA_NO_NODEnr_huge_pages等于nr_huge_pages
2469  否则nr_huge_pages等于nr_huge_pages_node[nid]
2472  返回:输出格式化串
调用者
名称描述
nr_hugepages_show
nr_hugepages_mempolicy_showhstate attribute for optionally mempolicy-based constraint on persistent* huge page alloc/free.