Function report |
Source Code:mm\hugetlb.c |
Create Date:2022-07-28 15:29:50 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:move_hugetlb_state
Proto:void move_hugetlb_state(struct page *oldpage, struct page *newpage, int reason)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct page * | oldpage | |
struct page * | newpage | |
int | reason |
5046 | h = page_hstate(oldpage) |
5062 | old_nid = page_to_nid(oldpage) |
5063 | new_nid = page_to_nid(newpage) |
5065 | SetPageHugeTemporary(oldpage) |
5068 | spin_lock( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.) |
5069 | If surplus_huge_pages_node[old_nid] Then |
5070 | surplus_huge_pages_node[old_nid]-- |
5071 | surplus_huge_pages_node[new_nid]++ |
Name | Describe |
---|---|
unmap_and_move_huge_page | Counterpart of unmap_and_move_page() for hugepage migration |
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 |