Function report |
Source Code:mm\hugetlb.c |
Create Date:2022-07-28 15:28:03 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Forward declaration
Proto:static int hugetlb_acct_memory(struct hstate *h, long delta)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct hstate * | h | |
| long | delta |
| 3123 | spin_lock( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.) |
| 3141 | If delta > 0 Then |
| 3142 | If Increase the hugetlb pool such that it can accommodate a reservation* of size 'delta'. < 0 Then Go to out |
| 3145 | If delta > cpuset_mems_nr(free_huge_pages_node) Then |
| 3151 | ret = 0 |
| 3152 | If delta < 0 Then This routine has two main purposes:* 1) Decrement the reservation count (resv_huge_pages) by the value passed* in unused_resv_pages |
| 3155 | out : |
| 3156 | spin_unlock( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.) |
| 3157 | Return ret |
| Name | Describe |
|---|---|
| unlock_or_release_subpool | |
| hugepage_new_subpool | |
| hugetlb_fix_reserve_counts | A rare out of memory error was encountered which prevented removal of* the reserve map region for a page. The huge page itself was free'ed* and removed from the page cache. This routine will adjust the subpool |
| alloc_huge_page | |
| hugetlb_vm_op_close | |
| hugetlb_reserve_pages | |
| hugetlb_unreserve_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 |