Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\fs.h Create Date:2022-07-28 05:43:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:check_sticky

Proto:static inline int check_sticky(struct inode *dir, struct inode *inode)

Type:int

Parameter:

TypeParameterName
struct inode *dir
struct inode *inode
3528  If Not (i_mode & S_ISVTX) Then Return 0
3531  Return __check_sticky(dir, inode)
Caller
NameDescribe
may_deleteCheck whether we can remove a link victim from directory dir, check* whether the type of victim is right.* 1. We can't do it if dir is read-only (done in permission())* 2. We should have write and exec permissions on dir* 3