Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

debugfs

From Wikipedia, the free encyclopedia
RAM-based Linux file system
For the ext file system debugger, seee2fsprogs.

debugfs is a special file system available in theLinux kernel since version 2.6.10-rc3.[1] It was written byGreg 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, orsysfs, which has strict one-value-per-file rules, debugfs has no rules at all. Developers can put any information they want there.[4]

Use

[edit]

To compile a Linux kernel with the debugfs facility, theCONFIG_DEBUG_FS option must be set to yes. It is typically mounted at/sys/kernel/debug with a command such as:[5]

mount-tdebugfsnone/sys/kernel/debug

It can be manipulated using several calls from the Cheader filelinux/debugfs.h, which include:

  • debugfs_create_file – for creating a file in the debug filesystem.
  • debugfs_create_dir – for creating a directory inside the debug filesystem.
  • debugfs_create_symlink – for creating a symbolic link inside the debug filesystem.
  • debugfs_remove – for removing a debugfs entry from the debug filesystem.

References

[edit]
  1. ^Linux: DebugFSArchived 2010-02-01 at theWayback Machine, by Jeremy, December 11, 2004, KernelTrap. (Announcement of debugfs by Greg KH.)
  2. ^"Debugfs".LWN.net. 2004-12-13.
  3. ^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.)
  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

[edit]
Linux kernel
Controversies
Distributions
Organizations
Adoption
Media
Security
certifications
Organization
Kernel
Support
People
Technical
Debugging
Startup
ABIs
APIs
Kernel
System Call
Interface
In-kernel
Userspace
Daemons,
File systems
Wrapper
libraries
Components
Variants
Virtualization
Adoption
Range
of use
Adopters
Retrieved from "https://en.wikipedia.org/w/index.php?title=Debugfs&oldid=1282454666"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp