Re: [PATCH v11 2/3] rust: add parameter support to the `module!` macro

2025-05-06 Thread Andreas Hindborg
"Alice Ryhl" writes: > On Mon, May 05, 2025 at 11:55:33AM +0200, Andreas Hindborg wrote: >> "Alice Ryhl" writes: >> >> > On Fri, May 02, 2025 at 02:16:35PM +0200, Andreas Hindborg wrote: >> > It would be a use-after-free to >> > access it during module teardown. For example, what if I access thi

Re: [PATCH v11 2/3] rust: add parameter support to the `module!` macro

2025-05-06 Thread Alice Ryhl
On Mon, May 05, 2025 at 11:55:33AM +0200, Andreas Hindborg wrote: > "Alice Ryhl" writes: > > > On Fri, May 02, 2025 at 02:16:35PM +0200, Andreas Hindborg wrote: > > It would be a use-after-free to > > access it during module teardown. For example, what if I access this > > static during its own d

Re: [PATCH v11 2/3] rust: add parameter support to the `module!` macro

2025-05-05 Thread Andreas Hindborg
"Alice Ryhl" writes: > On Fri, May 02, 2025 at 02:16:35PM +0200, Andreas Hindborg wrote: >> Add support for module parameters to the `module!` macro. Implement read >> only support for integer types without `sysfs` support. >> >> Acked-by: Petr Pavlu # from modules perspective >> Tested-by: Dani

Re: [PATCH v11 2/3] rust: add parameter support to the `module!` macro

2025-05-02 Thread Alice Ryhl
On Fri, May 02, 2025 at 02:16:35PM +0200, Andreas Hindborg wrote: > Add support for module parameters to the `module!` macro. Implement read > only support for integer types without `sysfs` support. > > Acked-by: Petr Pavlu # from modules perspective > Tested-by: Daniel Gomez > Signed-off-by: An

[PATCH v11 2/3] rust: add parameter support to the `module!` macro

2025-05-02 Thread Andreas Hindborg
Add support for module parameters to the `module!` macro. Implement read only support for integer types without `sysfs` support. Acked-by: Petr Pavlu # from modules perspective Tested-by: Daniel Gomez Signed-off-by: Andreas Hindborg --- rust/kernel/lib.rs | 1 + rust/kernel/module_