Function report |
Source Code:mm\rmap.c |
Create Date:2022-07-28 14:56:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Special version of the above for do_swap_page, which often runs* into pages that are exclusively owned by the current process.* Everybody else should continue to use page_add_anon_rmap above.
Proto:void do_page_add_anon_rmap(struct page *page, struct vm_area_struct *vma, unsigned long address, int flags)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct page * | page | |
struct vm_area_struct * | vma | |
unsigned long | address | |
int | flags |
1121 | compound = flags & RMAP_COMPOUND |
1124 | If compound Then |
1126 | VM_BUG_ON_PAGE(!PageLocked(page), page) |
1128 | mapcount = compound_mapcount_ptr(page) |
1129 | first = atomic_inc_and_test(mapcount) |
1130 | Else |
1134 | If first Then |
1135 | nr = If compound Then hpage_nr_pages(page) Else 1 |
1142 | If compound Then __inc_node_page_state(page, NR_ANON_THPS) |
1149 | VM_BUG_ON_PAGE(!PageLocked(page), page) |
Name | Describe |
---|---|
page_add_anon_rmap | page_add_anon_rmap - add pte mapping to an anonymous page*@page: the page to add the mapping to*@vma: the vm area in which the mapping is added*@address: the user virtual address mapped*@compound: charge the page as compound or small page* The caller |
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 |