[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yu5pUp5mfngAU7da@yadro.com>
Date: Sat, 6 Aug 2022 16:14:58 +0300
From: Konstantin Shelekhin <k.shelekhin@...ro.com>
To: <ojeda@...nel.org>
CC: <alex.gaynor@...il.com>, <bjorn3_gh@...tonmail.com>,
<boqun.feng@...il.com>, <gary@...yguo.net>,
<gregkh@...uxfoundation.org>, <jarkko@...nel.org>,
<linux-fsdevel@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<me@...enk.de>, <milan@...verde.com>, <patches@...ts.linux.dev>,
<rust-for-linux@...r.kernel.org>, <torvalds@...ux-foundation.org>,
<wedsonaf@...gle.com>
Subject: Re: [PATCH v9 26/27] samples: add first Rust examples
> +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.
Powered by blists - more mailing lists