'\" t .\" Title: debugfs_lookup .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: The debugfs filesystem .\" Source: Kernel Hackers Manual 4.12.2 .\" Language: English .\" .TH "DEBUGFS_LOOKUP" "9" "July 2017" "Kernel Hackers Manual 4\&.12\&" "The debugfs filesystem" .\" ----------------------------------------------------------------- .\" * 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" debugfs_lookup \- look up an existing debugfs file .SH "SYNOPSIS" .HP \w'struct\ dentry\ *\ debugfs_lookup('u .BI "struct dentry * debugfs_lookup(const\ char\ *\ " "name" ", struct\ dentry\ *\ " "parent" ");" .SH "ARGUMENTS" .PP \fIconst char * name\fR .RS 4 a pointer to a string containing the name of the file to look up\&. .RE .PP \fIstruct dentry * parent\fR .RS 4 a pointer to the parent dentry of the file\&. .RE .SH "DESCRIPTION" .PP This function will return a pointer to a dentry if it succeeds\&. If the file doesn\*(Aqt exist or an error occurs, \fBNULL\fR will be returned\&. The returned dentry must be passed to \fBdput\fR when it is no longer needed\&. .PP If debugfs is not enabled in the kernel, the value \-\fBENODEV\fR will be returned\&. .SH "COPYRIGHT" .br