Make debugfs directory naming more uniform

This commit is contained in:
Ciro Santilli
2017-05-26 08:59:44 +01:00
parent 6d2bbab19c
commit d38baa2358
8 changed files with 8 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ static u32 value = 42;
int init_module(void)
{
struct dentry *file;
dir = debugfs_create_dir("kernel_module_cheat", 0);
dir = debugfs_create_dir("lkmc_debugfs", 0);
if (!dir) {
printk(KERN_ALERT "debugfs_create_dir failed");
return -1;

View File

@@ -139,7 +139,7 @@ static const struct file_operations fops = {
int init_module(void)
{
struct dentry *file;
dir = debugfs_create_dir("kernel_module_cheat", 0);
dir = debugfs_create_dir("lkmc_fops", 0);
if (!dir) {
printk(KERN_ALERT "debugfs_create_dir failed");
return -1;

View File

@@ -63,7 +63,7 @@ static const struct file_operations fops = {
int init_module(void)
{
dir = debugfs_create_dir("kernel_module_cheat_poll", 0);
dir = debugfs_create_dir("lkmc_poll", 0);
debugfs_create_file("f", 0666, dir, NULL, &fops);
init_waitqueue_head(&waitqueue);
kthread = kthread_create(kthread_func, NULL, "mykthread");