debugfs

debugfs is a special file system available in the Linux kernel since version 2.6.10-rc3.

[2] debugfs is a simple-to-use RAM-based file system specially designed for debugging purposes.

It exists as a simple way for kernel developers to make information available to user space.

[4] To compile a Linux kernel with the debugfs facility, the CONFIG_DEBUG_FS option must be set to yes.

It is typically mounted at /sys/kernel/debug with a command such as:[5] It can be manipulated using several calls from the C header file linux/debugfs.h, which include: