Function report |
Source Code:mm\hmm.c |
Create Date:2022-07-28 16:37:28 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:hmm_vma_walk_hugetlb_entry
Proto:static int hmm_vma_walk_hugetlb_entry(pte_t *pte, unsigned long hmask, unsigned long start, unsigned long end, struct mm_walk *walk)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
pte_t * | pte | |
unsigned long | hmask | |
unsigned long | start | |
unsigned long | end | |
struct mm_walk * | walk |
547 | hmm_vma_walk = private |
554 | ret = 0 |
556 | ptl = huge_pte_lock(hstate_vma(vma), mm, pte) |
557 | entry = huge_ptep_get(pte) |
559 | i = start - start >> PAGE_SHIFT determines the page size |
562 | cpu_flags = pte_to_hmm_pfn_flags(range, entry) |
563 | fault = write_fault = false |
564 | hmm_pte_need_fault(hmm_vma_walk, orig_pfn, cpu_flags, & fault, & write_fault) |
566 | If fault || write_fault Then |
577 | unlock : |
578 | spin_unlock(ptl) |
583 | Return ret |
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 |