Hello, I am trying to create a debugfs file using the debugfs_create_file(...). I have written a sample code for this.
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... Thanks, Bala |
Hi, Firstly, did you check the logs ? the dmesg ? Also, try
so that you get all types of messages to go to the console. Secondly, do you have your debugfs mounted properly ? I would do a mount | grep 'debugfs' to check. I am not even a newbie in linux kernel programming but hope this helps you somehow :) answered 05 May '10, 20:05 Knight Samar |
Please accept an answer so the question/answer can be finished. Or provide more details so we can help.