Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
struct userfaultfd_ctx *ctx
struct vm_area_struct *vma
unsigned longaddress
unsigned longflags
unsigned longreason
233  mm = mm with one ore more vmas attached to this userfaultfd_ctx
235  bool ret = true
237  VM_BUG_ON(!In all implementations count != 0 means locked )
239  ptep = huge_pte_offset(mm, address, Return the page size being used by the MMU to back a VMA. In the majority* of cases, the page size used by the kernel matches the MMU size. On* architectures where it differs, an architecture-specific 'strong'* version of this symbol is required.)
241  If Not ptep Then Go to out
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
Caller
NameDescribe
handle_userfaultThe 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