函数逻辑报告 |
Source Code:fs\attr.c |
Create Date:2022-07-29 10:38:24 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:y_change - modify attributes of a filesytem object*@dentry: object affected*@attr: new attributes*@delegated_inode: returns inode, if the inode is delegated* The caller must hold the i_mutex on the affected object
函数原型:int notify_change(struct dentry *dentry, struct iattr *attr, struct inode **delegated_inode)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct dentry * | dentry | |
| struct iattr * | attr | |
| struct inode ** | delegated_inode |
| 231 | WARN_ON_ONCE(!inode_is_locked(inode)) |
| 234 | 如果IS_IMMUTABLE(inode)或IS_APPEND(inode)则返回:负EPERM |
| 242 | 如果ia_valid按位与ATTR_TOUCH则 |
| 243 | 如果IS_IMMUTABLE(inode)则返回:负EPERM |
| 263 | 如果非ia_valid按位与ATTR_ATIME_SET的值则ia_atime等于now |
| 267 | 如果非ia_valid按位与ATTR_MTIME_SET的值则ia_mtime等于now |
| 272 | 如果ia_valid按位与ATTR_KILL_PRIV则 |
| 276 | 如果error恒等于0则ia_valid等于ia_valid与等于ATTR_KILL_PRIV的反 |
| 287 | 如果ia_valid按位与ATTR_KILL_SUID按位或ATTR_KILL_SGID的值且ia_valid按位与Attribute flags. These should be or-ed together to figure out what* has been changed!则BUG() |
| 291 | 如果ia_valid按位与ATTR_KILL_SUID则 |
| 297 | 如果ia_valid按位与ATTR_KILL_SGID则 |
| 306 | 如果非ia_valid按位与ATTR_KILL_SUID按位或ATTR_KILL_SGID的值的反的值则返回:0 |
| 328 | error等于security_inode_setattr(dentry, attr) |
| 331 | error等于try_break_deleg(inode, delegated_inode) |
| 337 | 否则error等于simple_setattr - setattr for simple filesystem*@dentry: dentry*@iattr: iattr structure* Returns 0 on success, -error on failure |
| 340 | 如果非error则 |
| 346 | 返回:error |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |