Re: [PATCH] rust: debugfs: add primitive type bindings
From: Matthias Kaehlcke
Date: Thu Sep 24 2026 - 13:49:17 EST
El Tue, Sep 22, 2026 at 09:18:58PM +0200 Matthias Kaehlcke ha dit:
> Introduce `impl_debugfs_primitive!` to implement debugfs attribute
> creation for native Rust primitive types by wrapping C debugfs creation
> helpers.
I realized most of the functionality is already there, regular decimal
attributes can be created using Dir::read_write_file() or
Dir::read_only_file(), with 'data' being of a type like Atomic<u32>
or Mutex<u8>, similar to the 'counter' example in the sample driver.
Sorry for the noise :)