| Function report | 
| Source Code: mm\hmm.c | Create Date:2022-07-28 16:36:56 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:hmm_pte_need_fault
Proto:static inline void hmm_pte_need_fault(const struct hmm_vma_walk *hmm_vma_walk, uint64_t pfns, uint64_t cpu_flags, bool *fault, bool *write_fault)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| const struct hmm_vma_walk * | hmm_vma_walk | |
| uint64_t | pfns | |
| uint64_t | cpu_flags | |
| bool * | fault | |
| bool * | write_fault | 
| 129 | If flags & Don't fault in missing PTEs, just snapshot the current state. Then Return | 
| 142 | pfns = pfns & pfn_flags_mask | default_flags | 
| 145 | If Not (pfns & flags[ pfn is valid. It has, at least, read permission.]) Then Return | 
| 148 | If cpu_flags & flags[ private device memory (ZONE_DEVICE)] Then | 
| 158 | fault = Not (cpu_flags & flags[ pfn is valid. It has, at least, read permission.]) | 
| 160 | If pfns & flags[ CPU page table has write permission set] && Not (cpu_flags & flags[ CPU page table has write permission set]) Then | 
| 162 | * write_fault = true | 
| 163 | * fault = true | 
| Name | Describe | 
|---|---|
| hmm_range_need_fault | |
| hmm_vma_handle_pte | |
| hmm_vma_walk_hugetlb_entry | 
| 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 |