Function report |
Source Code:mm\hugetlb.c |
Create Date:2022-07-28 15:27:05 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Increment or decrement surplus_huge_pages. Keep node-specific counters* balanced by operating on them in a round-robin fashion.* Returns 1 if an adjustment was made.
Proto:static int adjust_pool_surplus(struct hstate *h, nodemask_t *nodes_allowed, int delta)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct hstate * | h | |
nodemask_t * | nodes_allowed | |
int | delta |
2284 | If delta < 0 Then |
2286 | If surplus_huge_pages_node[node] Then Go to found |
2289 | Else |
2291 | If surplus_huge_pages_node[node] < nr_huge_pages_node[node] Then Go to found |
2296 | Return 0 |
2298 | found : |
2299 | surplus_huge_pages += delta |
2300 | surplus_huge_pages_node[node] += delta |
2301 | Return 1 |
Name | Describe |
---|---|
set_max_huge_pages |
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 |