void debugfs_remove(struct dentry *dentry);
struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry, struct dentry *new_dir, const char *new_name);
When kernel code is being debugged, the need to export and manipulate a single elementary value like an int or a long often arises. Debugfs also provides several functions that create a new file that allows for reading the value from userspace and passing a new value into the kernel. They all share a common prototype:
Continue reading here: Info
Was this article helpful?