debugfs_create_file_unsafe — create a file in the debugfs filesystem
|const char * name,|
|struct dentry * parent,|
|void * data,|
|const struct file_operations * fops|
const char * name
a pointer to a string containing the name of the file to create.
the permission that the file should have.
struct dentry * parent
a pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is NULL, then the file will be created in the root of the debugfs filesystem.
void * data
a pointer to something that the caller will want to get to later
on. The inode.i_private pointer will point to this value on
const struct file_operations * fops
a pointer to a struct file_operations that should be used for this file.
It is your responsibility to protect your struct file_operation
methods against file removals by means of
open is still protected by
Any struct file_operations defined by means of
DEFINE_DEBUGFS_ATTRIBUTE is protected against file removals and
thus, may be used here.