From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fout-b4-smtp.messagingengine.com (fout-b4-smtp.messagingengine.com [202.12.124.147]) (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 49CA851C352; Tue, 8 Sep 2026 11:20:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.147 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788866419; cv=none; b=SBsrkvS5F1+UCUnhgPl42qAtfO4i+T1BOkk1wF1hgjMDbLx27wDDHo5HRrhFrdl2dwl9v4b+rhThF/5zQwXYIaR02udwUsZX2UZmezQmP+Akgsw5y9/FW/kQqAuMaTzhAPGV2iat0mKDKqDg+57c0f/UNaaGHQoBKUP/0GjHWO8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788866419; c=relaxed/simple; bh=Fn1URNTKhYfk5Nkef6PweTEh5tOJSlthScFybnrsnoU=; h=Date:Message-Id:To:Cc:Subject:From:In-Reply-To:References: Mime-Version:Content-Type; b=JtCyTaTwL9LA9zHBkUar7p8tmX7tA4SwG9qw/ek9E50S79I+dOOxs/bLvR2LrUnsnFKfLfVUeksaOVYa4G3bbXqcMe3PcmPiQv07vw5P0nVgjELGmZ3yVolzWU5ksDqR5G4wJgnfZWpzaJQOrK0BUjL6tiTOlRkehKSEpVO3u+w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=flapping.org; spf=pass smtp.mailfrom=flapping.org; dkim=pass (2048-bit key) header.d=flapping.org header.i=@flapping.org header.b=L5kK64A0; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=ZpFNT1PP; arc=none smtp.client-ip=202.12.124.147 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=flapping.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flapping.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flapping.org header.i=@flapping.org header.b="L5kK64A0"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ZpFNT1PP" Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfout.stl.internal (Postfix) with ESMTP id 08B441D00100; Tue, 8 Sep 2026 07:20:05 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Tue, 08 Sep 2026 07:20:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flapping.org; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1788866405; x=1788952805; bh=Dx5eBO920oW3jNHbAB8VFAqYBHFHWGYSzShV91Wo+gw=; b= L5kK64A0RnBz0GWpw5B5hVIE4UvsJOpluCyvxzKG/t6UTKER2Y67rQRRxcCOtVyA vV2so33GPzWsCpl5/AzZ02jLyPtkbFhWFryqqJi+TCubOSgJZ/1GhrnxwPJ8TN2s iAN5NKwRDKC+LqjFLaB/rqXVqv3NZ+BQs2cBTLvyeFjFgfVQanfURVSZl0FAyvyZ GI3kvVBpeIBIKLbQtnW/PoSeGzc01vQltqCpD0MHduiSnWvOCEYqfdTidhiAz4r5 FlpbJ5mjpDVmjGfaT+inZ1vbbRpoI756Abq2GPzs7U0Q+sptGZRhkfs2d94qO2XB D+bxkjt2UsG4EX6ErN8WAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1788866405; x= 1788952805; bh=D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41cILC8DGHOcbCTLwfOAMbIA/mhFmu7g X-ME-Proxy: Feedback-ID: i51fe4b43:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 8 Sep 2026 07:20:00 -0400 (EDT) Date: Tue, 08 Sep 2026 20:19:58 +0900 (JST) Message-Id: <20260908.201958.1344474905985997937.tomo@flapping.org> To: mike@fireburn.co.uk Cc: rust-for-linux@vger.kernel.org, a.hindborg@kernel.org, boqun@kernel.org, fujita.tomonori@gmail.com, frederic@kernel.org, lyude@redhat.com, tglx@kernel.org, anna-maria@linutronix.de, jstultz@google.com, sboyd@kernel.org, ojeda@kernel.org, gary@garyguo.net, bjorn3_gh@protonmail.com, lossin@kernel.org, aliceryhl@google.com, tmgross@umich.edu, dakr@kernel.org, daniel.almeida@collabora.com, tamird@kernel.org, acourbot@nvidia.com, work@onurozkan.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 9/9] rust: time: add ktime_get_real_seconds From: FUJITA Tomonori In-Reply-To: <20260826162851.2497-10-mike@fireburn.co.uk> References: <20260826162851.2497-1-mike@fireburn.co.uk> <20260826162851.2497-10-mike@fireburn.co.uk> Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit On Wed, 26 Aug 2026 17:28:43 +0100 Mike Lothian wrote: > Reading an `Instant` is the wrong tool for a caller that only > wants a calendar time in seconds: it takes a full nanosecond timestamp and > then needs a 64-bit division to get back to what the timekeeping core > already maintains as a plain seconds field. > > Wrap `ktime_get_real_seconds()`, which is that field. Document the property > that matters at the call site and that the type cannot express: the value > follows CLOCK_REALTIME, so it is not monotonic and can move in either > direction. > > Assisted-by: Claude:claude-opus-5 > Signed-off-by: Mike Lothian > --- > rust/kernel/time.rs | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) I could not find a user of this in the posted series, including the drm/vino v3 one, which looks like it uses `Instant` everywhere. Where can I see the code that calls this, and what does it do with the value? I would like to see the use case before judging what this should return.