Function report |
Source Code:mm\hugetlb.c |
Create Date:2022-07-28 15:27:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:nr_overcommit_hugepages_store
Proto:static ssize_t nr_overcommit_hugepages_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct kobject * | kobj | |
struct kobj_attribute * | attr | |
const char * | buf | |
size_t | count |
2571 | h = kobj_to_hstate(kobj, NULL) |
2573 | If hstate_is_gigantic(h) Then Return -EINVAL |
2580 | spin_lock( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.) |
2581 | nr_overcommit_huge_pages = input |
2582 | spin_unlock( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.) |
2584 | Return count |
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 |