table of contents
other versions
DEBUGFS_LOOKUP(9) | The debugfs filesystem | DEBUGFS_LOOKUP(9) |
NAME¶
debugfs_lookup - look up an existing debugfs file
SYNOPSIS¶
struct dentry * debugfs_lookup(const char * name, struct dentry * parent);
ARGUMENTS¶
const char * name
a pointer to a string containing the name of the file to
look up.
struct dentry * parent
a pointer to the parent dentry of the file.
DESCRIPTION¶
This function will return a pointer to a dentry if it succeeds. If the file doesn't exist or an error occurs, NULL will be returned. The returned dentry must be passed to dput when it is no longer needed.
If debugfs is not enabled in the kernel, the value -ENODEV will be returned.
COPYRIGHT¶
July 2017 | Kernel Hackers Manual 4.12 |