Function report |
Source Code:mm\khugepaged.c |
Create Date:2022-07-28 16:06:20 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__collapse_huge_page_isolate
Proto:static int __collapse_huge_page_isolate(struct vm_area_struct *vma, unsigned long address, pte_t *pte)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct vm_area_struct * | vma | |
unsigned long | address | |
pte_t * | pte |
538 | none_or_zero = 0 , result = 0 , referenced = 0 |
539 | bool writable = false |
541 | When _pte < pte + HPAGE_PMD_NR cycle |
544 | If pte_none(pteval) || pte_present(pteval) && is_zero_pfn(pte_pfn(pteval)) Then |
554 | If Not pte_present(pteval) Then |
555 | result = SCAN_PTE_NON_PRESENT |
556 | Go to out |
560 | result = SCAN_PAGE_NULL |
561 | Go to out |
565 | If PageCompound(page) Then |
566 | result = SCAN_PAGE_COMPOUND |
567 | Go to out |
570 | VM_BUG_ON_PAGE(!PageAnon(page), page) |
578 | If Not Return true if the page was successfully locked Then |
579 | result = SCAN_PAGE_LOCK |
580 | Go to out |
588 | If page_count(page) != 1 + PageSwapCache(page) Then |
590 | result = SCAN_PAGE_COUNT |
591 | Go to out |
594 | writable = true |
595 | Else |
599 | result = SCAN_SWAP_CACHE_PAGE |
600 | Go to out |
614 | result = SCAN_DEL_PAGE_LRU |
615 | Go to out |
619 | VM_BUG_ON_PAGE(!PageLocked(page), page) |
620 | VM_BUG_ON_PAGE(PageLRU(page), page) |
623 | If pte_young(pteval) || page_is_young(page) || PageReferenced(page) || mmu_notifier_test_young(The address space we belong to. , address) Then referenced++ |
628 | If Value is more likely to compile time(writable) Then |
629 | If Value is more likely to compile time(referenced) Then |
630 | result = SCAN_SUCCEED |
633 | Return 1 |
635 | Else |
636 | result = SCAN_PAGE_RO |
639 | out : |
640 | release_pte_pages(pte, _pte) |
643 | Return 0 |
Name | Describe |
---|---|
collapse_huge_page |
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 |