Function report | 
Source Code:mm\hugetlb.c | 
Create Date:2022-07-28 15:26:20 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Free huge page from pool from next node to free.* Attempt to keep persistent huge pages more or less* balanced over allowed nodes.* Called with hugetlb_lock locked.
Proto:static int free_pool_huge_page(struct hstate *h, nodemask_t *nodes_allowed, bool acct_surplus)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct hstate * | h | |
| nodemask_t * | nodes_allowed | |
| bool | acct_surplus | 
| 1444 | ret = 0 | 
| 1451 | If ( Not acct_surplus || surplus_huge_pages_node[node]) && Not list_empty - tests whether a list is empty*@head: the list to test. Then | 
| 1457 | free_huge_pages-- | 
| 1458 | free_huge_pages_node[node]-- | 
| 1459 | If acct_surplus Then | 
| 1460 | surplus_huge_pages-- | 
| 1461 | surplus_huge_pages_node[node]-- | 
| 1463 | update_and_free_page(h, page) | 
| 1464 | ret = 1 | 
| 1465 | Break | 
| 1469 | Return ret | 
| Name | Describe | 
|---|---|
| return_unused_surplus_pages | This routine has two main purposes:* 1) Decrement the reservation count (resv_huge_pages) by the value passed* in unused_resv_pages | 
| 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  |