| Function report | 
| Source Code: fs\userfaultfd.c | Create Date:2022-07-28 20:20:32 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Same functionality as userfaultfd_must_wait below with modifications for* hugepmd ranges.
Proto:static inline bool userfaultfd_huge_must_wait(struct userfaultfd_ctx *ctx, struct vm_area_struct *vma, unsigned long address, unsigned long flags, unsigned long reason)
Type:bool
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct userfaultfd_ctx * | ctx | |
| struct vm_area_struct * | vma | |
| unsigned long | address | |
| unsigned long | flags | |
| unsigned long | reason | 
| 235 | bool ret = true | 
| 244 | ret = false | 
| 245 | pte = huge_ptep_get(ptep) | 
| 251 | If huge_pte_none(pte) Then ret = true | 
| 253 | If Not huge_pte_write(pte) && reason & wrprotect pages tracking Then ret = true | 
| 255 | out : | 
| 256 | Return ret | 
| Name | Describe | 
|---|---|
| handle_userfault | The locking rules involved in returning VM_FAULT_RETRY depending on* FAULT_FLAG_ALLOW_RETRY, FAULT_FLAG_RETRY_NOWAIT and* FAULT_FLAG_KILLABLE are not straightforward | 
| 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 |