函数逻辑报告 |
Source Code:fs\namei.c |
Create Date:2022-07-29 10:35:09 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:int vfs_unlink(struct inode *dir, struct dentry *dentry, struct inode **delegated_inode)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct inode * | dir | >i_mutex before doing so. |
struct dentry * | dentry | |
struct inode ** | delegated_inode |
3933 | inode_lock(target) |
3934 | 如果is_local_mountpoint(dentry)则error等于负EBUSY |
3936 | 否则 |
3938 | 如果非error则 |
3939 | error等于try_break_deleg(target, delegated_inode) |
3942 | error等于unlink(>i_mutex before doing so., dentry) |
3943 | 如果非error则 |
3950 | out : |
3951 | inode_unlock(target) |
3954 | 如果非error且非 protected by d_lock 按位与DCACHE_NFSFS_RENAMED的值则 |
3959 | 返回:error |
名称 | 描述 |
---|---|
do_unlinkat | Make sure that the actual truncation of the file will occur outside its* directory's i_mutex. Truncate can take a long time if there is a lot of* writeout happening, and we don't want to prevent access to the directory* while waiting on the I/O. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |