Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:can_do_pageout

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

Type:bool

Parameter:

TypeParameterName
struct vm_area_struct *vma
520  If vma_is_anonymous(vma) Then Return true
522  If Not File we map to (can be NULL). Then Return false
530  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
madvise_pageout