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_unmap_prep

Proto:int userfaultfd_unmap_prep(struct vm_area_struct *vma, unsigned long start, unsigned long end, struct list_head *unmaps)

Type:int

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned longstart
unsigned longend
struct list_head *unmaps
833  When vma && Our start address within vm_mm. < end cycle
835  ctx = ctx
837  If Not ctx || Not (atures requested from the userspace & UFFD_FEATURE_EVENT_UNMAP) || has_unmap_ctx(ctx, unmaps, start, end) Then Continue
841  unmap_ctx = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
842  If Not unmap_ctx Then Return -ENOMEM
845  serfaultfd_ctx_get - Acquires a reference to the internal userfaultfd* context.*@ctx: [in] Pointer to the userfaultfd context.
846  WRITE_ONCE(memory mappings are changing because of non-cooperative event , true)
847  ctx = ctx
848  start = start
849  end = end
850  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
853  Return 0