函数逻辑报告

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

函数名称:mremap_userfaultfd_complete

函数原型:void mremap_userfaultfd_complete(struct vm_userfaultfd_ctx *vm_ctx, unsigned long from, unsigned long to, unsigned long len)

返回类型:void

参数:

类型参数名称
struct vm_userfaultfd_ctx *vm_ctx
unsigned longfrom
unsigned longto
unsigned longlen
769  ctx等于ctx
772  如果非ctx则返回
775  如果to按位与PAGE_MASK的反则
776  serfaultfd_ctx_put - Releases a reference to the internal userfaultfd* context.*@ctx: [in] Pointer to userfaultfd context.* The userfaultfd context reference must have been previously acquired either* with userfaultfd_ctx_get() or userfaultfd_ctx_fdget().
777  返回
780  msg_init( & msg)
782  event等于UFFD_EVENT_REMAP
783  from等于from
784  to等于to
785  len等于len
787  userfaultfd_event_wait_completion(ctx, & ewq)
调用者
名称描述
SYSCALL_DEFINE5Expand (or shrink) an existing mapping, potentially moving it at the* same time (controlled by the MREMAP_MAYMOVE flag and available VM space)* MREMAP_FIXED option added 5-Dec-1999 by Benjamin LaHaise* This option implies MREMAP_MAYMOVE.