函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__d_obtain_alias

函数原型:static struct dentry *__d_obtain_alias(struct inode *inode, bool disconnected)

返回类型:struct dentry

参数:

类型参数名称
struct inode *inode
booldisconnected
2050  如果非inode则返回:错误号
2052  如果是错误则返回:错误指示
2055  res等于d_find_any_alias - find any alias for a given inode*@inode: inode to find an alias for* If any aliases exist for the given inode, take and return a* reference for one of them. If no aliases exist, return %NULL.
2056  如果res则转到:out_iput
2059  tmp等于d_alloc_anon(i_sb)
2060  如果非tmp
2061  res等于错误号
2062  转到:out_iput
2065  返回:__d_instantiate_anon(tmp, inode, disconnected)
2067  out_iput :
2068  放置一个索引节点
2069  返回:res
调用者
名称描述
d_obtain_aliasd_obtain_alias - find or allocate a DISCONNECTED dentry for a given inode*@inode: inode to allocate the dentry for* Obtain a dentry for an inode resulting from NFS filehandle conversion or* similar open by handle operations
d_obtain_rootd_obtain_root - find or allocate a dentry for a given inode*@inode: inode to allocate the dentry for* Obtain an IS_ROOT dentry for the root of a filesystem.* We must ensure that directory inodes only ever have one dentry. If a