函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mincore.c Create Date:2022-07-27 16:12:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:can_do_mincore

函数原型:static inline bool can_do_mincore(struct vm_area_struct *vma)

返回类型:bool

参数:

类型参数名称
struct vm_area_struct *vma
182  如果vma_is_anonymous(vma)则返回:true
184  如果非File we map to (can be NULL). 则返回:false
192  返回:inode_owner_or_capable(file_inode(File we map to (can be NULL). ))或inode_permission(file_inode(File we map to (can be NULL). ), MAY_WRITE)恒等于0
调用者
名称描述
do_mincoreDo a chunk of "sys_mincore()". We've already checked* all the arguments, we hold the mmap semaphore: we should* just return the amount of info we're asked for.