Skip to content

Commit

Permalink
fixes thesofproject#127 -- added a comment to clarify an example
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored Mar 19, 2021
1 parent 7ea525c commit d5e7f1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/char/rust_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ impl KernelModule for RustExample {

let mut chrdev_reg =
chrdev::Registration::new_pinned(cstr!("rust_chrdev"), 0, &THIS_MODULE)?;
// Register the same kind of device twice, we're just demonstrating
// that you can use multiple minors.
chrdev_reg.as_mut().register::<RustFile>()?;
chrdev_reg.as_mut().register::<RustFile>()?;

Expand Down

0 comments on commit d5e7f1a

Please sign in to comment.