mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
Make debugfs directory naming more uniform
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user