Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Register hstate attributes for a single node device.* No-op if attributes already registered.

Proto:static void hugetlb_register_node(struct node *node)

Type:void

Parameter:

TypeParameterName
struct node *node
2765  nhs = node_hstates[id]
2768  If hugepages_kobj Then Return
2771  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
2773  If Not hugepages_kobj Then Return
2777  err = hugetlb_sysfs_add_hstate(h, hugepages_kobj, hstate_kobjs, & per_node_hstate_attr_group)
2780  If err Then
2781  pr_err("Hugetlb: Unable to add hstate %s for node %d\n", name, id)
2783  Unregister hstate attributes from a single node device.* No-op if no hstate attributes attached.
2784  Break
Caller
NameDescribe
hugetlb_register_all_nodeshugetlb init time: register hstate attributes for all registered node* devices of nodes that have memory. All on-line nodes should have* registered their associated device by this time.