函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\open.c Create Date:2022-07-29 10:30:58
Last Modify:2020-03-18 10:16:03 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:chmod_common

函数原型:static int chmod_common(const struct path *path, umode_t mode)

返回类型:int

参数:

类型参数名称
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  如果error则返回:error
554  retry_deleg :
555  inode_lock(inode)
556  error等于security_path_chmod(path, mode)
557  如果error则转到: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  如果delegated_inode
565  error等于break_deleg_wait( & delegated_inode)
566  如果非error则转到:retry_deleg
569  mnt_drop_write(mnt)
570  返回:error
调用者
名称描述
ksys_fchmod
do_fchmodat