Function report |
Source Code:mm\rmap.c |
Create Date:2022-07-28 14:56:18 |
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_one
Proto:static bool page_referenced_one(struct page *page, struct vm_area_struct *vma, unsigned long address, void *arg)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct page * | page | |
struct vm_area_struct * | vma | |
unsigned long | address | |
void * | arg | page_referenced_arg will be passed |
783 | referenced = 0 |
788 | If Flags, see mm.h. & VM_LOCKED Then |
794 | If pte Then |
795 | If ptep_clear_flush_young_notify(vma, address, pte) Then |
805 | If Value is more likely to compile time(!(Flags, see mm.h. & App will access data sequentially )) Then referenced++ |
809 | If pmdp_clear_flush_young_notify(vma, address, pmd) Then referenced++ |
812 | Else |
814 | WARN_ON_ONCE(1) |
817 | mapcount-- |
820 | If referenced Then clear_page_idle(page) |
822 | If test_and_clear_page_young(page) Then referenced++ |
825 | If referenced Then |
826 | referenced++ |
827 | vm_flags |= Flags, see mm.h. |
830 | If Not mapcount Then Return false |
833 | Return true |
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 |