First page Back Continue Last page Overview Graphics
Debugging with /proc or /sys
Instead of dumping messages in the kernel log, you can have your drivers make information available to user space
Through a file in /proc or /sys, which contents are handled by callbacks defined and registered by your driver.
Can be used to show any piece of information
about your device or driver.
Can also be used to send data to the driver or to control it.
Caution: anybody can use these files.
You should remove your debugging interface in production!
Since the arrival of debugfs, no longer the preferred debugging mechanism