Function report |
Source Code:mm\rmap.c |
Create Date:2022-07-28 14:56:21 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:page_referenced - test if the page was referenced*@page: the page to test*@is_locked: caller holds lock on the page*@memcg: target memory cgroup*@vm_flags: collect encountered vma->vm_flags who actually referenced the page* Quick test_and_clear_referenced
Proto:int page_referenced(struct page *page, int is_locked, struct mem_cgroup *memcg, unsigned long *vm_flags)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct page * | page | |
int | is_locked | |
struct mem_cgroup * | memcg | |
unsigned long * | vm_flags |
862 | we_locked = 0 |
863 | struct page_referenced_arg pra = {mapcount = total_mapcount(page), memcg = memcg, } |
873 | vm_flags = 0 |
874 | If Not mapcount Then Return 0 |
877 | If Not Neutral page->mapping pointer to address_space or anon_vma or other Then Return 0 |
882 | If Not we_locked Then Return 1 |
891 | If memcg Then |
901 | Return referenced |
Name | Describe |
---|---|
shrink_active_list | |
page_check_references |
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 |