Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Little introduction to debugfs #231

Open
flavv opened this issue Sep 19, 2023 · 0 comments
Open

Little introduction to debugfs #231

flavv opened this issue Sep 19, 2023 · 0 comments

Comments

@flavv
Copy link

flavv commented Sep 19, 2023

I write a little introduction to debugfs

quote from Kernel documentation :

"Debugfs exists as a simple way for kernel developers to make information
available to user space. 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. The debugfs filesystem is also intended to not serve as a stable
ABI to user space; in theory, there are no stability constraints placed on
files exported there. The real world is not always so simple, though [1];
even debugfs interfaces are best designed with the idea that they will need
to be maintained forever."

in attachment 3 files :

  • debugfs_par.txt : the text of the introduction
  • kparm_debugfs.txt : a very simple example
  • kparm_debugfs_file.txt : Another example, more complex shows you how to create a file in the most general way (with debugfs_create_file) and a blob.

debugfs_par.txt
kparm_debugfs.txt
kparm_debugfs_file.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant