Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Mar 2010
debugfs_create_file doesn’t create file
static int __init mmapexample_module_init(void)
file1 = debugfs_create_file("mmap_example", 0644, NULL, NULL, &my_fops)\
printk(KERN_ALERT "Hello, World\n");
printk(KERN_ALERT "Error occured\n");
printk(KERN_ALERT "ENODEV occured\n");
When i ran insmod i could get the Hello, World message but no the error message. So i think the debugfs_create_file worked fine. However i couldn't find any file in /sys/kernel/debug. The folder is there but it is empty. Can anyone help me with this? Thank you...