DGET

Section: (9)
Updated: 06 August 2003
Index Return to Main Contents

 

NAME

dget - get a reference to a dentry  

SYNOPSIS

struct dentry * dget (struct dentry * dentry);  

ARGUMENTS

dentry
dentry to get a reference to
 

DESCRIPTION

Given 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.  

ABOUT THIS DOCUMENT

This documentation was generated with kernel version 2.6.0.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
ABOUT THIS DOCUMENT

This document was created by man2html, using the manual pages.
Time: 08:41:24 GMT, April 09, 2004