函数逻辑报告 |
Source Code:fs\namei.c |
Create Date:2022-07-29 10:35:01 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Check 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
函数原型:static int may_delete(struct inode *dir, struct dentry *victim, bool isdir)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct inode * | dir | |
struct dentry * | victim | |
bool | isdir |
2739 | 如果d_is_negative(victim)则返回:负ENOENT |
2749 | audit_inode_child(dir, victim, a child being deleted ) |
2757 | 如果check_sticky(dir, inode)或IS_APPEND(inode)或IS_IMMUTABLE(inode)或IS_SWAPFILE(inode)或HAS_UNMAPPED_ID(inode)则返回:负EPERM |
2760 | 如果isdir则 |
2767 | 如果IS_DEADDIR(dir)则返回:负ENOENT |
2769 | 如果 protected by d_lock 按位与DCACHE_NFSFS_RENAMED则返回:负EBUSY |
2771 | 返回:0 |
名称 | 描述 |
---|---|
vfs_rmdir | |
vfs_unlink | vfs_unlink - unlink a filesystem object*@dir: parent directory*@dentry: victim*@delegated_inode: returns victim inode, if the inode is delegated.* The caller must hold dir->i_mutex.* If vfs_unlink discovers a delegation, it will return -EWOULDBLOCK and |
vfs_rename | vfs_rename - rename a filesystem object*@old_dir: parent of source*@old_dentry: source*@new_dir: parent of destination*@new_dentry: destination*@delegated_inode: returns an inode needing a delegation break*@flags: rename flags |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |