函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\userfaultfd.c Create Date:2022-07-29 10:52:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:userfaultfd_remove

函数原型:bool userfaultfd_remove(struct vm_area_struct *vma, unsigned long start, unsigned long end)

返回类型:bool

参数:

类型参数名称
struct vm_area_struct *vma
unsigned longstart
unsigned longend
793  mm等于The address space we belong to.
797  ctx等于ctx
798  如果非ctx或非atures requested from the userspace 按位与UFFD_FEATURE_EVENT_REMOVE的值则返回: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  返回:false
调用者
名称描述
madvise_removeApplication wants to free up the pages and associated backing store.* This is effectively punching a hole into the middle of a file.