Thread (1 message) 1 message, 1 author, 2025-07-04

Re: [PATCH v14 3/7] rust: introduce module_param module

From: Andreas Hindborg <a.hindborg@kernel.org>
Date: 2025-07-04 07:29:59
Also in: linux-kbuild, lkml, rust-for-linux

"Danilo Krummrich" [off-list ref] writes:
On 7/2/25 3:18 PM, Andreas Hindborg wrote:
quoted
+    /// Get a shared reference to the parameter value.
+    // Note: When sysfs access to parameters are enabled, we have to pass in a
+    // held lock guard here.
+    pub fn get(&self) -> &T {
+        self.value.as_ref().unwrap_or(&self.default)
+    }
I think you forgot to rename this.
Yes, thanks for being persistent on this :)


Best regards,
Andreas Hindborg

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help