table of contents
DEBUGFS_RENAME(9) | The debugfs filesystem | DEBUGFS_RENAME(9) |
NAME¶
debugfs_rename - rename a file/directory in the debugfs filesystem
SYNOPSIS¶
struct dentry * debugfs_rename(struct dentry * old_dir, struct dentry * old_dentry, struct dentry * new_dir, const char * new_name);
ARGUMENTS¶
struct dentry * old_dir
struct dentry * old_dentry
struct dentry * new_dir
const char * new_name
DESCRIPTION¶
This function renames a file/directory in debugfs. The target must not exist for rename to succeed.
This function will return a pointer to old_dentry (which is updated to reflect renaming) if it succeeds. 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 |