The last entry in the list must be of the form null

10.2.3 The Debug Filesystem

One particular filesystem using functions from libfs is the debug filesystem debugfs. It presents kernel developers with a possibility of providing information to userland. The information is not supposed to be compiled into production kernels. Quite in contrast, it is only an aid for developing new features. Support for debugfs is only activated if the kernel is compiled with the debug_fs configuration option. Code that registers files in debugfs thus needs to be embraced by C pre-processor conditionals checking for CONFIG_DEBUG_FS.

Continue reading here: Example

Was this article helpful?

0 0