Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:can_do_mincore

Proto:static inline bool can_do_mincore(struct vm_area_struct *vma)

Type:bool

Parameter:

TypeParameterName
struct vm_area_struct *vma
182  If vma_is_anonymous(vma) Then Return true
184  If Not File we map to (can be NULL). Then Return false
192  Return 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
Caller
NameDescribe
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.