函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kobj_to_hstate

函数原型:static struct hstate *kobj_to_hstate(struct kobject *kobj, int *nidp)

返回类型:struct hstate

参数:

类型参数名称
struct kobject *kobj
int *nidp
2449 i小于HUGE_MAX_HSTATE循环如果hstate_kobjs[i]恒等于kobj
2451  如果nidpnidp等于NUMA_NO_NODE
2453  返回:hstates[i]
2456  返回:kobj_to_node_hstate(kobj, nidp)
调用者
名称描述
nr_hugepages_show_common
nr_hugepages_store_common
nr_overcommit_hugepages_show
nr_overcommit_hugepages_store
free_hugepages_show
resv_hugepages_show
surplus_hugepages_show