| Function report | 
| Source Code: mm\huge_memory.c | Create Date:2022-07-28 16:03:07 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Racy check whether the huge page can be split
Proto:bool can_split_huge_page(struct page *page, int *pextra_pins)
Type:bool
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct page * | page | |
| int * | pextra_pins | 
| 2667 | If PageAnon(page) Then extra_pins = If PageSwapCache(page) Then HPAGE_PMD_NR Else 0 | 
| 2669 | Else extra_pins = HPAGE_PMD_NR | 
| 2671 | If pextra_pins Then pextra_pins = extra_pins | 
| 2673 | Return total_mapcount(page) == page_count(page) - extra_pins - 1 | 
| Name | Describe | 
|---|---|
| split_huge_page_to_list | This function splits huge page into normal pages. @page can point to any* subpage of huge page to split. Split doesn't change the position of @page.* Only caller must hold pin on the @page, otherwise split fails with -EBUSY.* The huge page must be locked. | 
| 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 |