函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:删除目录项

函数原型:void d_delete(struct dentry *dentry)

返回类型:void

参数:

类型参数名称
struct dentry *dentry
2442  inode等于 Where the name belongs to - NULL is * negative
2444  加自旋锁
2445  加自旋锁
2449  如果count恒等于1则
2450  protected by d_lock 与等于DCACHE_CANT_MOUNT的反
2451  Release the dentry's inode, using the filesystem* d_iput() operation if defined.
2452  否则
2453  删除目录项
2454  自旋锁解锁
2455  自旋锁解锁
调用者
名称描述
vfs_unlinkvfs_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
__ns_get_path