Function report |
Source Code:mm\hugetlb.c |
Create Date:2022-07-28 15:27:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:hugetlb_overcommit_handler
Proto:int hugetlb_overcommit_handler(struct ctl_table *table, int write, void __user *buffer, size_t *length, loff_t *ppos)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct ctl_table * | table | |
int | write | |
void __user * | buffer | |
size_t * | length | |
loff_t * | ppos |
3011 | h = default_hstate |
3015 | If Not hugepages_supported() Then Return -EOPNOTSUPP |
3018 | tmp = nr_overcommit_huge_pages |
3020 | If write && hstate_is_gigantic(h) Then Return -EINVAL |
3029 | If write Then |
3030 | spin_lock( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.) |
3031 | nr_overcommit_huge_pages = tmp |
3034 | out : |
3035 | Return ret |
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 |