Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\open.c Create Date:2022-07-28 20:00:55
Last Modify:2020-03-18 10:16:03 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:chmod_common

Proto:static int chmod_common(const struct path *path, umode_t mode)

Type:int

Parameter:

TypeParameterName
const struct path *path
umode_tmode
546  inode = Where the name belongs to - NULL is * negative
547  struct inode * delegated_inode = NULL
551  error = mnt_want_write(mnt)
552  If error Then Return error
554  retry_deleg :
555  inode_lock(inode)
556  error = security_path_chmod(path, mode)
557  If error Then Go to out_unlock
559  ia_mode = mode & S_IALLUGO | i_mode & ~S_IALLUGO
560  ia_valid = Attribute flags. These should be or-ed together to figure out what* has been changed! | ATTR_CTIME
561  error = notify_change(dentry, & newattrs, & delegated_inode)
562  out_unlock :
563  inode_unlock(inode)
564  If delegated_inode Then
565  error = break_deleg_wait( & delegated_inode)
566  If Not error Then Go to retry_deleg
569  mnt_drop_write(mnt)
570  Return error
Caller
NameDescribe
ksys_fchmod
do_fchmodat