seq_file.rs: Rust API for seq_file#703
Closed
adamrk wants to merge 4 commits intoRust-for-Linux:rustfrom
Closed
Conversation
Author
|
Note: this PR contains the changes from #702 |
740a3c1 to
66b176a
Compare
9e2e089 to
0248a73
Compare
Author
|
@wedsonaf : Let me know what else I can add to make this work for your use case. |
Add a Rust API to create directories and files in `debugfs`. Signed-off-by: Adam Bratschi-Kaye <ark.email@gmail.com>
Add a Rust trait analagous to the `seq_operations` vtable and a function for creating files in `debugfs` from types that implement that trait. Signed-off-by: Adam Bratschi-Kaye <ark.email@gmail.com>
Create a sample Rust driver with a miscdev that displays debug information using a `seq_file` in `debugfs`. Signed-off-by: Adam Bratschi-Kaye <ark.email@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a Rust trait analagous to the
seq_operationsvtable and a functionfor creating files in
debugfsfrom types that implement that trait.Signed-off-by: Adam Bratschi-Kaye ark.email@gmail.com