From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B9D863955D8; Mon, 3 Aug 2026 17:56:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785779789; cv=none; b=JXyXxhLO5pR3IHCPOMCUwO17zrS7dny2ZTEOzxYVcCP6SXTjypl+5bkBndJc6itCl9X2+E3tdRQDCmoRXpaXAnRsFyA9ETTWd4XxmYixVgxFNE9M6+Nugv773fNgD92H/jtcN3Pbf8o7atZ1EYcOe9GN4eQisWgHD/9mYbS2erY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785779789; c=relaxed/simple; bh=Qvrs2oBboVMB507TatCgoFZaOC1I0y25AAlsZMSic58=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:To:From:Subject: References:In-Reply-To; b=oF7KHDHtovuT4Mjpdg07pif2/FFV4em1aY/Fw2negpsNrpEDqYGTuHQ89vOSbmcJoRzeuTziFt+e+BK7/blJABuY/426h0jbGnjMDw4gihyzWBfwLbD4PtEe2zuRiKVGogRwFFgpkCTTL/h5yi5wjp0blEp3JUWIoZM+KqzemSU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fuFz+tmd; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fuFz+tmd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1BE61F000E9; Mon, 3 Aug 2026 17:56:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1785779788; bh=Qvrs2oBboVMB507TatCgoFZaOC1I0y25AAlsZMSic58=; h=Date:Cc:To:From:Subject:References:In-Reply-To; b=fuFz+tmdn1gJS5SbwyUATSbpaBEq0otZ4K4VKTwmDHWnoxOwfCuemfOsEzo0u8YMj cP7X9rlSZJd5kezXZuUewSlPM0U7TIVTWyFp+vECqHmbTv4Nkg6QtrOLFfaWTMRU6I JQbefjoo+z8uRb/+uT6WpCFqGdiIdx9myxhVBm5cuU6+J8100nRlTRZU7uO4zQPriE kE42qw6IfsFzYgLIQRac2gjUzVOMy4l9gmPxkOTjm9bMz0ib33pOiV6eIdI6BuIDgT NdkW0EPvKeMD11BI4Akb+YfKhBoH2Mk7cn6Wt+Bqoja/4BevQSzlLBfcv8ggqw+BJj SDM+yzZAgWdng== Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 03 Aug 2026 19:56:21 +0200 Message-Id: Cc: "Miguel Ojeda" , "Boqun Feng" , "Gary Guo" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , "Daniel Almeida" , "Tamir Duberstein" , "Alexandre Courbot" , =?utf-8?q?Onur_=C3=96zkan?= , "Greg Kroah-Hartman" , "Rafael J. Wysocki" , "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "David Airlie" , "Simona Vetter" , "Alexander Viro" , "Christian Brauner" , "Jan Kara" , "Matthew Brost" , =?utf-8?q?Thomas_Hellstr=C3=B6m?= , =?utf-8?q?Ma=C3=ADra_Canal?= , "Melissa Wen" , "Wambui Karuga" , "Eric Anholt" , "Ben Gamari" , , , To: "Alvin Sun" From: "Danilo Krummrich" Subject: Re: [PATCH v2 6/9] rust: drm: add DrmSeqShow seq_file adapter References: <20260731-tyr-debugfs-v2-v2-0-aea19eccb996@linux.dev> <20260731-tyr-debugfs-v2-v2-6-aea19eccb996@linux.dev> In-Reply-To: <20260731-tyr-debugfs-v2-v2-6-aea19eccb996@linux.dev> On Thu Jul 30, 2026 at 7:05 PM CEST, Alvin Sun wrote: > Add DrmSeqShow trait and its SeqShow blanket impl for Device, > 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 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>.