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

From: Andreas Hindborg
Date: Fri Jul 04 2025 - 03:32:19 EST


"Danilo Krummrich" <dakr@xxxxxxxxxx> writes:

> On 7/2/25 3:18 PM, Andreas Hindborg wrote:
>> + /// 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