From nobody Tue Nov 10 00:22:03 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4jNnQh0gznz70kxQ for ; Tue, 10 Nov 2026 00:22:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jNnQg6XFRz3QhY for ; Tue, 10 Nov 2026 00:22:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794270123; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+Iof9blmERF62p64RdD6rgl0LJltNtgvvnt5AqHJaEY=; b=cSM0JOuLw++sWTVGcVB9kZWrys9jsqED75HwlUdgkXaKkovwxQV5NQOV3QrhX9NJI72zIK 8QTS20NqH2Ig2HDb3+K+wsfTVSJM9bUJTAIJyHNHvxdfI6HQVjZaQTQVMoEdwW1TMxwooQ 5kplczh9cFG7xTOZ9Uif/JPvNIUGkfgoH1Qs3A2S8PE9UTAWGk0KhPU+f8XOsttMSAJdXz Cuzgh7PKRR0/KYvjiOi2Md83kedcXz2QzSlRmzvw+tiz/X4lygiyISXzmpBguLb4JVf3K6 N+Wj/PJc4yHSoLfHMm1lUbBgODfKBbtrg4drHm6K0qtdwN4Bz+piaz5jj7ZoVg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794270123; b=eJqQc4ZYbJTa0Ou/4OUnz9o5tA7eVCsjvH2UE7/voI+sv4DRE2VorAIX976hq8SPiod+av pheLgeTGAFCuZruqVXZcAxTnmD7b0oTWvdzhodYKXuyrYO90qso/SlT0/PvCZE/RBjwXDc 5xeNgOZ+Rfwx9r8TQ1CL4UJZhGRPmKs+0R5hr/CV/jVpQtGD7CaKJFS6KcIloY9gshMFVw c33U89VwQ9tQYomABH5v1C5O2m7cX4dE9bPSTxDXVx7kYZc1fLZiRhClx/nCGzYuNYf07Q 1oyVYhEtR19DHMqaQbMzcww/N3UN02ebQwiAAf8wGW0zR79aoLyYpOIeDJa9HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794270123; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+Iof9blmERF62p64RdD6rgl0LJltNtgvvnt5AqHJaEY=; b=GwdJ8TJ8eXFXn4GgPWV2r8gHSzp++xthDK2+UDHq0EDKVFHlNpJlhnEai+UB5Z6zAm7mno bk9O7CauOY1dOnUcaLBB5MzFD4W9kuuX4Pea5Hm5nyoGpUIDWzLCoj351HVDqI8DJa32W4 IXD1i3Eba/TXsKwoEbEyh8ImEQHhhPVSXhW4OtWFQ2n//qOTrjQqEP3EUJcdPBU5Y8sXlu SnyvJROgiQD3OuJLnvMykTYU70+TfdFxCe17CibRkxbp/wNKs3LKsP1/42iNAYCFwDThqc Qka0jjr1CoYY/gF4be9sGBp9TlfTIooOaHRLoCdxB5T3nOE1+/13vXTyYgCHew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jNnQg66Jkz13sp for ; Tue, 10 Nov 2026 00:22:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id f703 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 10 Nov 2026 00:22:03 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 701ac0b23050 - main - _umtx_op.2: correct the description of the valid _clockid for _umtx_time List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 701ac0b230503db65b53c7ee8a211b146fcc82c9 Auto-Submitted: auto-generated Date: Tue, 10 Nov 2026 00:22:03 +0000 Message-Id: <6af263ab.f703.7e5d5249@gitrepo.freebsd.org> The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=701ac0b230503db65b53c7ee8a211b146fcc82c9 commit 701ac0b230503db65b53c7ee8a211b146fcc82c9 Author: Konstantin Belousov AuthorDate: 2026-11-05 21:28:13 +0000 Commit: Konstantin Belousov CommitDate: 2026-11-10 00:21:18 +0000 _umtx_op.2: correct the description of the valid _clockid for _umtx_time And remove the duplicated list from the description of the condition variable. Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D61253 --- lib/libsys/_umtx_op.2 | 71 +++++++++++++++++++++++++++------------------------ 1 file changed, 38 insertions(+), 33 deletions(-) diff --git a/lib/libsys/_umtx_op.2 b/lib/libsys/_umtx_op.2 index 8bdb20fa2178..f83690bcc250 100644 --- a/lib/libsys/_umtx_op.2 +++ b/lib/libsys/_umtx_op.2 @@ -190,36 +190,10 @@ member provides the clock identifier to use for timeout, when the request has both the .Dv CVWAIT_CLOCKID flag and the timeout specified. -Valid clock identifiers are a subset of those for -.Xr clock_gettime 2 : -.Bl -bullet -compact -.It -.Dv CLOCK_MONOTONIC -.It -.Dv CLOCK_MONOTONIC_FAST -.It -.Dv CLOCK_MONOTONIC_PRECISE -.It -.Dv CLOCK_PROF -.It -.Dv CLOCK_REALTIME -.It -.Dv CLOCK_REALTIME_FAST -.It -.Dv CLOCK_REALTIME_PRECISE -.It -.Dv CLOCK_SECOND -.It -.Dv CLOCK_TAI -.It -.Dv CLOCK_UPTIME -.It -.Dv CLOCK_UPTIME_FAST -.It -.Dv CLOCK_UPTIME_PRECISE -.It -.Dv CLOCK_VIRTUAL -.El +Valid clock identifiers are the same as for the +.Dv _clockid +member of the +.Vt struct _umtx_time . .It Sy Reader/writer lock .Bd -literal struct urwlock { @@ -357,15 +331,46 @@ The member specifies the time when the timeout should occur. Legal values for clock identifier .Dv _clockid -are shared with the +are a subset of the valid values for the .Fa clock_id argument to the .Xr clock_gettime 2 -function, -and use the same underlying clocks. +function, and use the same underlying clocks. The specified clock is used to obtain the current time value. Interval counting is always performed by the monotonic wall clock. .Pp +Currently accepted clocks are: +.Bl -bullet -compact +.It +.Dv CLOCK_MONOTONIC +.It +.Dv CLOCK_MONOTONIC_FAST +.It +.Dv CLOCK_MONOTONIC_PRECISE +.It +.Dv CLOCK_PROCESS_CPUTIME_ID +.It +.Dv CLOCK_PROF +.It +.Dv CLOCK_REALTIME +.It +.Dv CLOCK_REALTIME_FAST +.It +.Dv CLOCK_REALTIME_PRECISE +.It +.Dv CLOCK_SECOND +.It +.Dv CLOCK_TAI +.It +.Dv CLOCK_UPTIME +.It +.Dv CLOCK_UPTIME_FAST +.It +.Dv CLOCK_UPTIME_PRECISE +.It +.Dv CLOCK_VIRTUAL +.El +.Pp The .Dv _flags argument allows the following flags to further define the timeout behaviour: