函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:serfaultfd_wake may be used in combination with the* UFFDIO_*_MODE_DONTWAKE to wakeup userfaults in batches.

函数原型:static int userfaultfd_wake(struct userfaultfd_ctx *ctx, unsigned long arg)

返回类型:int

参数:

类型参数名称
struct userfaultfd_ctx *ctx
unsigned longarg
1676  __userbuf等于arg
1678  ret等于负EFAULT
1679  如果copy_from_user( & uffdio_wake, buf, uffdio_wake的长度)则转到:out
1682  ret等于validate_range(mm with one ore more vmas attached to this userfaultfd_ctx , & start, len)
1683  如果ret则转到:out
1686  start等于start
1687  len等于len
1693  VM_BUG_ON(!len)
1695  wake_userfault(ctx, & range)
1696  ret等于0
1698  out :
1699  返回:ret
调用者
名称描述
userfaultfd_ioctl