Debugfs - Usage

Usage

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

It is typically mounted in /sys/kernel/debug with a command like:

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.

Read more about this topic:  Debugfs

Famous quotes containing the word usage:

    ...Often the accurate answer to a usage question begins, “It depends.” And what it depends on most often is where you are, who you are, who your listeners or readers are, and what your purpose in speaking or writing is.
    Kenneth G. Wilson (b. 1923)

    I am using it [the word ‘perceive’] here in such a way that to say of an object that it is perceived does not entail saying that it exists in any sense at all. And this is a perfectly correct and familiar usage of the word.
    —A.J. (Alfred Jules)

    Girls who put out are tramps. Girls who don’t are ladies. This is, however, a rather archaic usage of the word. Should one of you boys happen upon a girl who doesn’t put out, do not jump to the conclusion that you have found a lady. What you have probably found is a lesbian.
    Fran Lebowitz (b. 1951)