table of contents
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¶
name
a pointer to a string containing the name of the file to
look up.
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¶
June 2024 | Kernel Hackers Manual 3.10 |