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:
Linux: DebugFS Archived 2010-02-01 at the Wayback Machine, by Jeremy, December 11, 2004, KernelTrap. (Announcement of debugfs by Greg KH.) http://kerneltrap.org/node/4394 ↩
"Debugfs". LWN.net. 2004-12-13. https://lwn.net/Articles/115405/ ↩
Linux Kernel Documentation :: filesystems : debugfs.txt documentation from the source code (Based on kernel version 2.6.35.4. Page generated on 2010-09-02 21:39 EST.) http://www.mjmwired.net/kernel/Documentation/filesystems/debugfs.txt ↩
An updated guide to debugfs, By Jonathan Corbet, May 25, 2009, LWN https://lwn.net/Articles/334546/ ↩
2.5 Debugfs A guide to using debugfs, Ariane Keller, Version 0.8, July 2008, Kernel Space - User Space Interfaces https://web.archive.org/web/20160105144119/http://people.ee.ethz.ch/~arkeller/linux/kernel_user_space_howto.html#ss2.5 ↩