函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\attr.c Create Date:2022-07-29 10:38:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:setattr_copy - copy simple metadata updates into the generic inode*@inode: the inode to be updated*@attr: the new attributes* setattr_copy must be called with i_mutex held.* setattr_copy updates the inode's metadata with that specified* in attr

函数原型:void setattr_copy(struct inode *inode, const struct iattr *attr)

返回类型:void

参数:

类型参数名称
struct inode *inode
const struct iattr *attr
180  ia_valid等于ia_valid
182  如果ia_valid按位与ATTR_UIDi_uid等于ia_uid
184  如果ia_valid按位与ATTR_GIDi_gid等于ia_gid
186  如果ia_valid按位与ATTR_ATIMEi_atime等于ia_atime
188  如果ia_valid按位与ATTR_MTIMEi_mtime等于ia_mtime
190  如果ia_valid按位与ATTR_CTIMEi_ctime等于ia_ctime
192  如果ia_valid按位与Attribute flags. These should be or-ed together to figure out what* has been changed!
193  mode等于ia_mode
195  如果非Check whether we're fsgid/egid or in the supplemental group..且非apable_wrt_inode_uidgid - Check nsown_capable and uid and gid mapped*@inode: The inode in question*@cap: The capability in question* Return true if the current task has the given capability targeted at* its own user namespace and that the given inode's mode与等于S_ISGID的反
198  i_mode等于mode
调用者
名称描述
simple_setattrsimple_setattr - setattr for simple filesystem*@dentry: dentry*@iattr: iattr structure* Returns 0 on success, -error on failure
ramfs_nommu_setattrhandle a change of attributes* - we're specifically interested in a change of size