1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>d_path</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Filesystems API"><link rel="up" href="the_directory_cache.html" title="The Directory Cache"><link rel="prev" href="API-d-splice-alias.html" title="d_splice_alias"><link rel="next" href="API-d-add.html" title="d_add"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">d_path</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-d-splice-alias.html">Prev</a>&#160;</td><th width="60%" align="center">The Directory Cache</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-d-add.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-d-path"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>d_path &#8212; 
2     return the path of a dentry
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">char * <b class="fsfunc">d_path </b>(</code></td><td>const struct path * <var class="pdparam">path</var>, </td></tr><tr><td>&#160;</td><td>char * <var class="pdparam">buf</var>, </td></tr><tr><td>&#160;</td><td>int <var class="pdparam">buflen</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1101544908"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>path</code></em></span></dt><dd><p>
4     path to report
5    </p></dd><dt><span class="term"><em class="parameter"><code>buf</code></em></span></dt><dd><p>
6     buffer to return value in
7    </p></dd><dt><span class="term"><em class="parameter"><code>buflen</code></em></span></dt><dd><p>
8     buffer length
9    </p></dd></dl></div></div><div class="refsect1"><a name="idp1101548388"></a><h2>Description</h2><p>
10   Convert a dentry into an ASCII path name. If the entry has been deleted
11   the string <span class="quote">&#8220;<span class="quote"> (deleted)</span>&#8221;</span> is appended. Note that this is ambiguous.
12   </p><p>
13
14   Returns a pointer into the buffer or an error code if the path was
15   too long. Note: Callers should use the returned pointer, not the passed
16   in buffer, to use the name! The implementation often starts at an offset
17   into the buffer, and may leave 0 bytes at the start.
18   </p><p>
19
20   <span class="quote">&#8220;<span class="quote">buflen</span>&#8221;</span> should be positive.
21</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-d-splice-alias.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="the_directory_cache.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-d-add.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">d_splice_alias</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">d_add</span></td></tr></table></div></body></html>
22