Re: [PATCH v9 26/27] samples: add first Rust examples
From: Konstantin Shelekhin <hidden>
Date: 2022-08-06 13:15:10
Also in:
linux-fsdevel, linux-patches, lkml
From: Konstantin Shelekhin <hidden>
Date: 2022-08-06 13:15:10
Also in:
linux-fsdevel, linux-patches, lkml
+impl Drop for RustMinimal {
+ fn drop(&mut self) {
+ pr_info!("My numbers are {:?}\n", self.numbers);
+ pr_info!("Rust minimal sample (exit)\n");
+ }
+}I wonder if it would make more sense to implement exit() in kernel::Module, just for the sake of uniformity.