1D_OBTAIN_ALIAS(9)                The Linux VFS               D_OBTAIN_ALIAS(9)
2
3
4

NAME

6       d_obtain_alias - find or allocate a dentry for a given inode
7

SYNOPSIS

9       struct dentry * d_obtain_alias(struct inode * inode);
10

ARGUMENTS

12       inode
13           inode to allocate the dentry for
14

DESCRIPTION

16       Obtain a dentry for an inode resulting from NFS filehandle conversion
17       or similar open by handle operations. The returned dentry may be
18       anonymous, or may have a full name (if the inode was already in the
19       cache).
20
21       When called on a directory inode, we must ensure that the inode only
22       ever has one dentry. If a dentry is found, that is returned instead of
23       allocating a new one.
24
25       On successful return, the reference to the inode has been transferred
26       to the dentry. In case of an error the reference on the inode is
27       released. To make it easier to use in export operations a NULL or
28       IS_ERR inode may be passed in and will be the error will be propagate
29       to the return value, with a NULLinode replaced by ERR_PTR(-ESTALE).
30
32Kernel Hackers Manual 3.10         June 2019                 D_OBTAIN_ALIAS(9)
Impressum