table of contents
DEBUGFS_CREATE_SYMLI(9) | The debugfs filesystem | DEBUGFS_CREATE_SYMLI(9) |
NAME¶
debugfs_create_symlink - create a symbolic link in the debugfs filesystem
SYNOPSIS¶
struct dentry * debugfs_create_symlink(const char * name, struct dentry * parent, const char * target);
ARGUMENTS¶
const char * name
struct dentry * parent
const char * target
DESCRIPTION¶
This function creates a symbolic link with the given name in debugfs that links to the given target path.
This function will return a pointer to a dentry if it succeeds. This pointer must be passed to the debugfs_remove function when the symbolic link is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here.) If an error occurs, NULL will be returned.
If debugfs is not enabled in the kernel, the value -ENODEV will be returned.
COPYRIGHT¶
September 2017 | Kernel Hackers Manual 4.12 |