Function report |
Source Code:mm\hugetlb.c |
Create Date:2022-07-28 15:27:33 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:hugetlb_sysfs_add_hstate
Proto:static int hugetlb_sysfs_add_hstate(struct hstate *h, struct kobject *parent, struct kobject **hstate_kobjs, const struct attribute_group *hstate_attr_group)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct hstate * | h | |
| struct kobject * | parent | |
| struct kobject ** | hstate_kobjs | |
| const struct attribute_group * | hstate_attr_group |
| 2651 | hi = hstate_index(h) |
| 2654 | If Not hstate_kobjs[hi] Then Return -ENOMEM |
| 2657 | retval = sysfs_create_group(hstate_kobjs[hi], hstate_attr_group) |
| 2658 | If retval Then kobject_put() - Decrement refcount for object.*@kobj: object.* Decrement the refcount, and if 0, call kobject_cleanup(). |
| 2661 | Return retval |
| Name | Describe |
|---|---|
| hugetlb_sysfs_init | |
| hugetlb_register_node | Register hstate attributes for a single node device.* No-op if attributes already registered. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |