Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:serfaultfd_wake may be used in combination with the* UFFDIO_*_MODE_DONTWAKE to wakeup userfaults in batches.

Proto:static int userfaultfd_wake(struct userfaultfd_ctx *ctx, unsigned long arg)

Type:int

Parameter:

TypeParameterName
struct userfaultfd_ctx *ctx
unsigned longarg
1676  __user * buf = arg
1678  ret = -EFAULT
1679  If copy_from_user( & uffdio_wake, buf, size of uffdio_wake ) Then Go to out
1682  ret = validate_range(mm with one ore more vmas attached to this userfaultfd_ctx , & start, len)
1683  If ret Then Go to out
1686  start = start
1687  len = len
1693  VM_BUG_ON(!len)
1695  wake_userfault(ctx, & range)
1696  ret = 0
1698  out :
1699  Return ret
Caller
NameDescribe
userfaultfd_ioctl