From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 81C23C55182 for ; Mon, 3 Aug 2026 17:56:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D148C10E623; Mon, 3 Aug 2026 17:56:29 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="fuFz+tmd"; dkim-atps=neutral Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 92BA710E623 for ; Mon, 3 Aug 2026 17:56:28 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 7809243A0C; Mon, 3 Aug 2026 17:56:28 +0000 (UTC) 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== 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> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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>.