Re: [PATCH v2 6/9] rust: drm: add DrmSeqShow seq_file adapter
"Danilo Krummrich" <[email protected]> Mon, 03 Aug 2026 19:56:21 +0200
| Newsgroups | org.kernel.vger.rust-for-linux,dev.linux.lists.driver-core,org.freedesktop.lists.dri-devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu Jul 30, 2026 at 7:05 PM CEST, Alvin Sun wrote: > Add DrmSeqShow trait and its SeqShow blanket impl for Device<T, Normal>, > enabling Rust DRM drivers to expose device state via debugfs seq_file > entries. Device registration data is kept alive for the duration of > each seq_file read. > > Signed-off-by: Alvin Sun <[email protected]> This patch shouldn't be needed with the ScopeRef approach. The full proxy already guarantees show() can't run after debugfs_remove_recursive(). So, t= he driver can just implement plain debugfs::SeqShow<RegistrationData<'_>>.