World Library  
Flag as Inappropriate
Email this Article


Article Id: WHEBN0010058996
Reproduction Date:

Title: Debugfs  
Author: World Heritage Encyclopedia
Language: English
Subject: Linux kernel, Evdev, Kernel same-page merging, Compute Node Linux, Epoll
Publisher: World Heritage Encyclopedia


debugfs is a special file system available in the Linux kernel since version 2.6.10-rc3.[1] It was written by Greg Kroah-Hartman.[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.[3] Unlike /proc, which is only meant for information about a process, or sysfs, which has strict one-value-per-file rules, debugfs has no rules at all. Developers can put any information they want there.[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]

mount -t debugfs none /sys/kernel/debug

It can be manipulated using several calls from the C header file linux/debugfs.h

These include:

  • debugfs_create_file — for creating a file in the debug filesystem
  • debugfs_create_dir — for creating a directory inside the debug filesystem
  • debugfs_remove — for removing a debugfs entry from the debug filesytem.


  1. ^ Linux: DebugFS, by Jeremy, December 11, 2004, KernelTrap. (Announcement of debugfs by Greg KH.)
  2. ^ "Debugfs".  
  3. ^ Linux Kernel Documentation :: filesystems : debugfs.txt documentation from the source code (Based on kernel version Page generated on 2010-09-02 21:39 EST.)
  4. ^ An updated guide to debugfs, By Jonathan Corbet, May 25, 2009, LWN
  5. ^ 2.5 Debugfs A guide to using debugfs, Ariane Keller, Version 0.8, July 2008, Kernel Space - User Space Interfaces

External links

  • A basic introduction to debugfs
  • [1]An updated guide to debugfs at LWN]
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.