Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hugetlb_sysfs_init

Proto:static void __init hugetlb_sysfs_init(void)

Type:void

Parameter:Nothing

2669  hugepages_kobj = kobject_create_and_add() - Create a struct kobject dynamically and* register it with sysfs.*@name: the name for the kobject*@parent: the parent kobject of this kobject, if any.* This function creates a kobject structure dynamically and registers it
2670  If Not hugepages_kobj Then Return
2674  err = hugetlb_sysfs_add_hstate(h, hugepages_kobj, hstate_kobjs, & hstate_attr_group)
2676  If err Then pr_err("Hugetlb: Unable to add hstate %s", name)
Caller
NameDescribe
hugetlb_init