'\" t .\" Title: d_path .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: April 2019 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 4.9.168 .\" Language: English .\" .TH "D_PATH" "9" "April 2019" "Kernel Hackers Manual 4\&.9\&." "The Linux VFS" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" d_path \- return the path of a dentry .SH "SYNOPSIS" .HP \w'char\ *\ d_path('u .BI "char * d_path(const\ struct\ path\ *\ " "path" ", char\ *\ " "buf" ", int\ " "buflen" ");" .SH "ARGUMENTS" .PP \fIpath\fR .RS 4 path to report .RE .PP \fIbuf\fR .RS 4 buffer to return value in .RE .PP \fIbuflen\fR .RS 4 buffer length .RE .SH "DESCRIPTION" .PP Convert a dentry into an ASCII path name\&. If the entry has been deleted the string \(lq (deleted)\(rq is appended\&. Note that this is ambiguous\&. .PP Returns a pointer into the buffer or an error code if the path was too long\&. Note: Callers should use the returned pointer, not the passed in buffer, to use the name! The implementation often starts at an offset into the buffer, and may leave 0 bytes at the start\&. .PP \(lqbuflen\(rq should be positive\&. .SH "COPYRIGHT" .br