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

NAME

6       dget - get a reference to a dentry
7

SYNOPSIS

9       struct dentry * dget(struct dentry * dentry);
10

ARGUMENTS

12       dentry
13           dentry to get a reference to
14

DESCRIPTION

16       Given a dentry or NULL pointer increment the reference count if
17       appropriate and return the dentry. A dentry will not be destroyed when
18       it has references.  dget should never be called for dentries with zero
19       reference counter. For these cases (preferably none, functions in
20       dcache.c are sufficient for normal needs and they take necessary
21       precautions) you should hold dcache_lock and call dget_locked instead
22       of dget.
23
25Kernel Hackers Manual 2.6.       November 2011                         DGET(9)
Impressum