From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 78FE018056 for ; Mon, 9 Oct 2023 14:52:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="fpibxk1D"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="9PirVOG9" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92E568F for ; Mon, 9 Oct 2023 07:52:34 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1696863153; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UOeWQs9FLdGQo25V9gooBhGER+hpkh0PkA9Q2FoKocw=; b=fpibxk1DyYsA06cWfZOb51bUySp2L2lcXkU0Uftj8Dm9eYURx/OlVqZpz6fs3xtha1xQaU frpyUjt4m/n206GapXWzBaYd3ypUcW4zIy/yGIhV5doKOhF8GhwHgLe9mbV2D5SNrxRYYg Xn39j74AeFIWPYSfw4KTMfJoDbuKjihn102J/Rmx23WzUvSxm6qtawPjwCI2w+EJN/mzO4 3BArH584vlHs/RnIh9DOo/HWR7pU4QoWLSgWk26h2mZFVy1mBW/bFclpmoUtaIkOUNqzh6 9JHfaZxGRAmkeBY0TGVHCHLipi5/y714JIHDggrVwdT7MNp1FfGBLwullLbqEw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1696863153; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UOeWQs9FLdGQo25V9gooBhGER+hpkh0PkA9Q2FoKocw=; b=9PirVOG9i1YnWwCzVGjhMMbKpEUDr6SHNu5rU6hxz91IAyG/etQ7m7KxoyIUx11WOmRBMP SdF7ZyOgO1MIbADw== To: Xabier Marquiegui , netdev@vger.kernel.org Cc: richardcochran@gmail.com, jstultz@google.com, horms@kernel.org, chrony-dev@chrony.tuxfamily.org, mlichvar@redhat.com, reibax@gmail.com, ntp-lists@mattcorallo.com, vinicius.gomes@intel.com, davem@davemloft.net, rrameshbabu@nvidia.com, shuah@kernel.org Subject: Re: [PATCH net-next v5 1/6] posix-clock: introduce posix_clock_context concept In-Reply-To: <992c76f8570de9e0549c4d2446d17cae0a959b77.1696804243.git.reibax@gmail.com> References: <992c76f8570de9e0549c4d2446d17cae0a959b77.1696804243.git.reibax@gmail.com> Date: Mon, 09 Oct 2023 16:52:32 +0200 Message-ID: <87lecbq24v.ffs@tglx> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net On Mon, Oct 09 2023 at 00:49, Xabier Marquiegui wrote: > Add the necessary structure to support custom private-data per > posix-clock user. > > The previous implementation of posix-clock assumed all file open > instances need access to the same clock structure on private_data. > > The need for individual data structures per file open instance has been > identified when developing support for multiple timestamp event queue > users for ptp_clock. > > This patch introduces a generic posix_clock_context data structure as a "This patch .." We already know that this is a patch. https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes > > +struct posix_clock_context { > + struct posix_clock *clk; > + void *private_clkdata; > +}; https://www.kernel.org/doc/html/latest/process/maintainer-tip.html#struct-declarations-and-initializers Thanks, tglx