<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968" /><title>The Directory Cache</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /><link rel="home" href="index.html" title="Linux Filesystems API" /><link rel="up" href="ch01.html" title="Chapter 1. The Linux VFS" /><link rel="prev" href="re05.html" title="inode_inc_iversion" /><link rel="next" href="re06.html" title="d_invalidate" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">The Directory Cache</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="re05.html">Prev</a> </td><th width="60%" align="center">Chapter 1. The Linux VFS</th><td width="20%" align="right"> <a accesskey="n" href="re06.html">Next</a></td></tr></table><hr /></div><div class="sect1" title="The Directory Cache"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="the_directory_cache"></a>The Directory Cache</h2></div></div></div><div class="toc"><dl><dt><span class="refentrytitle"><a href="re06.html"><span>d_invalidate</span></a></span><span class="refpurpose"> — invalidate a dentry </span></dt><dt><span class="refentrytitle"><a href="re07.html"><span>shrink_dcache_sb</span></a></span><span class="refpurpose"> — shrink dcache for a superblock </span></dt><dt><span class="refentrytitle"><a href="re08.html"><span>have_submounts</span></a></span><span class="refpurpose"> — check for mounts over a dentry </span></dt><dt><span class="refentrytitle"><a href="re09.html"><span>shrink_dcache_parent</span></a></span><span class="refpurpose"> — prune dcache </span></dt><dt><span class="refentrytitle"><a href="re10.html"><span>d_alloc</span></a></span><span class="refpurpose"> — allocate a dcache entry </span></dt><dt><span class="refentrytitle"><a href="re11.html"><span>d_instantiate</span></a></span><span class="refpurpose"> — fill in inode information for a dentry </span></dt><dt><span class="refentrytitle"><a href="re12.html"><span>d_alloc_root</span></a></span><span class="refpurpose"> — allocate root dentry </span></dt><dt><span class="refentrytitle"><a href="re13.html"><span>d_obtain_alias</span></a></span><span class="refpurpose"> — find or allocate a dentry for a given inode </span></dt><dt><span class="refentrytitle"><a href="re14.html"><span>d_splice_alias</span></a></span><span class="refpurpose"> — splice a disconnected dentry into the tree if one exists </span></dt><dt><span class="refentrytitle"><a href="re15.html"><span>d_add_ci</span></a></span><span class="refpurpose"> — lookup or allocate new dentry with case-exact name </span></dt><dt><span class="refentrytitle"><a href="re16.html"><span>d_lookup</span></a></span><span class="refpurpose"> — search for a dentry </span></dt><dt><span class="refentrytitle"><a href="re17.html"><span>d_validate</span></a></span><span class="refpurpose"> — verify dentry provided from insecure source </span></dt><dt><span class="refentrytitle"><a href="re18.html"><span>d_delete</span></a></span><span class="refpurpose"> — delete a dentry </span></dt><dt><span class="refentrytitle"><a href="re19.html"><span>d_rehash</span></a></span><span class="refpurpose"> — add an entry back to the hash </span></dt><dt><span class="refentrytitle"><a href="re20.html"><span>d_move</span></a></span><span class="refpurpose"> — move a dentry </span></dt><dt><span class="refentrytitle"><a href="re21.html"><span>d_materialise_unique</span></a></span><span class="refpurpose"> — introduce an inode into the tree </span></dt><dt><span class="refentrytitle"><a href="re22.html"><span>d_path</span></a></span><span class="refpurpose"> — return the path of a dentry </span></dt><dt><span class="refentrytitle"><a href="re23.html"><span>find_inode_number</span></a></span><span class="refpurpose"> — check for dentry with name </span></dt><dt><span class="refentrytitle"><a href="re24.html"><span>__d_drop</span></a></span><span class="refpurpose"> — drop a dentry </span></dt><dt><span class="refentrytitle"><a href="re25.html"><span>d_add</span></a></span><span class="refpurpose"> — add dentry to hash queues </span></dt><dt><span class="refentrytitle"><a href="re26.html"><span>d_add_unique</span></a></span><span class="refpurpose"> — add dentry to hash queues without aliasing </span></dt><dt><span class="refentrytitle"><a href="re27.html"><span>dget</span></a></span><span class="refpurpose"> — get a reference to a dentry </span></dt><dt><span class="refentrytitle"><a href="re28.html"><span>d_unhashed</span></a></span><span class="refpurpose"> — is dentry hashed </span></dt></dl></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="re05.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch01.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="re06.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span>inode_inc_iversion</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span>d_invalidate</span></td></tr></table></div></body></html>