Re: [PATCH v13 5/6] rust: samples: add a module parameter to the rust_minimal sample

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(Sorry for being late on this one, just a minor nit below.)

On 6/12/25 3:40 PM, Andreas Hindborg wrote:
  struct RustMinimal {
@@ -20,6 +26,10 @@ impl kernel::Module for RustMinimal {
      fn init(_module: &'static ThisModule) -> Result<Self> {
          pr_info!("Rust minimal sample (init)\n");
          pr_info!("Am I built-in? {}\n", !cfg!(MODULE));
+        pr_info!(
+            "test_parameter: {}\n",
+            *module_parameters::test_parameter.get()

Can we please call it something else than get(), maybe obtain(), access() or
just ref()?

+        );
let mut numbers = KVec::new();
          numbers.push(72, GFP_KERNEL)?;






[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux