Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\userfaultfd.c Create Date:2022-07-28 20:20:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:userfaultfd_remove

Proto:bool userfaultfd_remove(struct vm_area_struct *vma, unsigned long start, unsigned long end)

Type:bool

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned longstart
unsigned longend
793  mm = The address space we belong to.
797  ctx = ctx
798  If Not ctx || Not (atures requested from the userspace & UFFD_FEATURE_EVENT_REMOVE) Then Return true
801  serfaultfd_ctx_get - Acquires a reference to the internal userfaultfd* context.*@ctx: [in] Pointer to the userfaultfd context.
802  WRITE_ONCE(memory mappings are changing because of non-cooperative event , true)
803  lease a read lock
805  msg_init( & msg)
807  event = UFFD_EVENT_REMOVE
808  start = start
809  end = end
811  userfaultfd_event_wait_completion(ctx, & ewq)
813  Return false
Caller
NameDescribe
madvise_removeApplication wants to free up the pages and associated backing store.* This is effectively punching a hole into the middle of a file.