函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:userfaultfd_ioctl

函数原型:static long userfaultfd_ioctl(struct file *file, unsigned cmd, unsigned long arg)

返回类型:long

参数:

类型参数名称
struct file *file
unsignedcmd
unsigned longarg
1866  ret等于负EINVAL
1867  ctx等于 needed for tty driver, and maybe others
1869  如果cmd不等于UFFDIO_APIstate machine 恒等于UFFD_STATE_WAIT_API则返回:负EINVAL
1873  :cmd恒等于UFFDIO_API
1874  ret等于serland asks for a certain API version and we return which bits* and ioctl commands are implemented in this kernel for such API* version or -EINVAL if unknown.
1875  退出
1876  :cmd恒等于UFFDIO_REGISTER
1877  ret等于userfaultfd_register(ctx, arg)
1878  退出
1879  :cmd恒等于UFFDIO_UNREGISTER
1880  ret等于userfaultfd_unregister(ctx, arg)
1881  退出
1882  :cmd恒等于UFFDIO_WAKE
1883  ret等于serfaultfd_wake may be used in combination with the* UFFDIO_*_MODE_DONTWAKE to wakeup userfaults in batches.
1884  退出
1885  :cmd恒等于UFFDIO_COPY
1886  ret等于userfaultfd_copy(ctx, arg)
1887  退出
1888  :cmd恒等于UFFDIO_ZEROPAGE
1889  ret等于userfaultfd_zeropage(ctx, arg)
1890  退出
1892  返回:ret