1DEBUGFS_RENAME(9) The debugfs filesystem DEBUGFS_RENAME(9)
2
3
4
6 debugfs_rename - rename a file/directory in the debugfs filesystem
7
9 struct dentry * debugfs_rename(struct dentry * old_dir,
10 struct dentry * old_dentry,
11 struct dentry * new_dir,
12 const char * new_name);
13
15 old_dir
16 a pointer to the parent dentry for the renamed object. This should
17 be a directory dentry.
18
19 old_dentry
20 dentry of an object to be renamed.
21
22 new_dir
23 a pointer to the parent dentry where the object should be moved.
24 This should be a directory dentry.
25
26 new_name
27 a pointer to a string containing the target name.
28
30 This function renames a file/directory in debugfs. The target must not
31 exist for rename to succeed.
32
33 This function will return a pointer to old_dentry (which is updated to
34 reflect renaming) if it succeeds. If an error occurs, NULL will be
35 returned.
36
37 If debugfs is not enabled in the kernel, the value -ENODEV will be
38 returned.
39
41Kernel Hackers Manual 2.6. November 2011 DEBUGFS_RENAME(9)