函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:validate_range

函数原型:static __always_inline int validate_range(struct mm_struct *mm, __u64 *start, __u64 len)

返回类型:int

参数:

类型参数名称
struct mm_struct *mm
__u64 *start
__u64len
1277  task_size等于 size of task vm space
1279  start等于Architectures that support memory tagging (assigning tags to memory regions,* embedding these tags into addresses that point to these memory regions, and* checking that the memory and the pointer tags match on memory accesses)( * start)
1281  如果start按位与PAGE_MASK的反则返回:负EINVAL
1283  如果len按位与PAGE_MASK的反则返回:负EINVAL
1285  如果非len则返回:负EINVAL
1287  如果start小于mmap_min_addr则返回:负EINVAL
1289  如果start大于等于task_size则返回:负EINVAL
1291  如果len大于task_sizestart则返回:负EINVAL
1293  返回:0
调用者
名称描述
userfaultfd_register
userfaultfd_unregister
userfaultfd_wakeserfaultfd_wake may be used in combination with the* UFFDIO_*_MODE_DONTWAKE to wakeup userfaults in batches.
userfaultfd_copy
userfaultfd_zeropage