Query: dget
OS: suse
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
DGET(9) The Linux VFS DGET(9)NAMEdget - get a reference to a dentrySYNOPSISstruct dentry * dget(struct dentry * dentry);ARGUMENTSdentry dentry to get a reference toDESCRIPTIONGiven a dentry or NULL pointer increment the reference count if appropriate and return the dentry. A dentry will not be destroyed when it has references. dget should never be called for dentries with zero reference counter. For these cases (preferably none, functions in dcache.c are sufficient for normal needs and they take necessary precautions) you should hold dcache_lock and call dget_locked instead of dget.COPYRIGHTKernel Hackers Manual 2.6. July 2010 DGET(9)