Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\dcache.c Create Date:2022-07-28 20:07:29
Last Modify:2020-03-18 10:27:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__d_obtain_alias

Proto:static struct dentry *__d_obtain_alias(struct inode *inode, bool disconnected)

Type:struct dentry

Parameter:

TypeParameterName
struct inode *inode
booldisconnected
2050  If Not inode Then Return ERR_PTR( - ESTALE)
2052  If IS_ERR(inode) Then Return ERR_CAST - Explicitly cast an error-valued pointer to another pointer type*@ptr: The pointer to cast.* Explicitly cast an error-valued pointer to another pointer type in such a* way as to make it clear that's what's going on.
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  If res Then Go to out_iput
2059  tmp = d_alloc_anon(i_sb)
2060  If Not tmp Then
2061  res = ERR_PTR( - ENOMEM)
2062  Go to out_iput
2065  Return __d_instantiate_anon(tmp, inode, disconnected)
2067  out_iput :
2068  put an inode
2069  Return res
Caller
NameDescribe
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