From nobody Tue Nov 17 01:09:41 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 4jT68Q467Qz71Q0r for ; Tue, 17 Nov 2026 01:09:42 +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 4jT68P5LCwz3C8X for ; Tue, 17 Nov 2026 01:09:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794877781; 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=5V/3pE93A/TlFiG+EsOGfoCu/LekS+jJ7bmg+l7HKpM=; b=d3K3ScgWkPwfF3Y/G5nrrML56heX+PtNSB4YNyRbpf4P3YoR2hf5n0LOTpqmcuMkFXnJSk 9d01avd+lFPWrctYOgmfj45tdsVJ93L16GO1H+/e4Bj2Q8RZWvo6pToEV9vB31WFNAK3a4 B9SkRgoGa6RaeBTEdHFqyTBaa8Ft/g+VIVQUda3pD7EBxVReOGjg+r5jmkP+a5JOORpLJ/ pPCzCUCMltf4JaEZ9ZQ6nBKcNgY12dfJkjSIb5ur0p5NbUOJmXmuOUvfr9XrtuoBzxJS/R OYXXHYkDVKAh7gjqIVs4vRzJDWURWVW3+Eom4OmfU4OiSwBs7o6jD8rv6QZSVw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794877781; b=lz4vounqLyZzNLkpG2w2pmnO2O9DMtxbckAzdM90qFJ+ZEH9x4kCriOvSBoQs/4Pf4pOZ3 KR/xaWboivzniuwbBbTBZ/pLJVL6BSoG6WcyyZJe/xaKzoRvr5GZjAb0SqE6wdGjeyQsiH 9Ae5PuE90TE/UP+kzUCSJq4BtiiDoz6q9b0LJT5P/2nPYmvxssiuFfA3t6NEHJ4bsGpgB6 K98kGdGbyZcIfgI7eYG2OdJq1PrfjOzVsZkZYK1Cc41O+tx2RofneBqR7pbEBgVYrqDvqW HhCepEVIr9363aNb4VjkcjVh79wnOGh0mR2hgmY48cedKGWsEUs7xSwpUpjkUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794877781; 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=5V/3pE93A/TlFiG+EsOGfoCu/LekS+jJ7bmg+l7HKpM=; b=SqA3nI9nFLkNqh1v9BfKMvnlslWu2t++sWxRw5DvQGPwrxOZ70q/tuuMHOmelB/+HjkbKB +KGRX0XkzUGGETDexJTCtWVFfiAuQjRRVIYkEYvHxX6A/sqmHxjriaSgigWhVzdv8Azf/h N2S8ZnA6n4wc9X2ta/0Y/FVSiSpTBkBIF0ev0w4TH3yyyvLVR/O3L5wOLv9Zp9VYnuj+7O f3q2zjkbFKZ7N4rpQYLTT+gb8l3cOUP/ox66KZ5p80iZv1FNebS/f+idEwD504g99h4Okz 3PcUCkmLbKt+zxrbUjL6jhtcdNgmtY+5tiRRJvTLFQ6pmS71S022yXuwhQrLMQ== 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 4jT68P4yD6zJDy for ; Tue, 17 Nov 2026 01:09:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 2db by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 17 Nov 2026 01:09:41 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 246fadcb2d97 - stable/15 - _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 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/stable/15 X-Git-Reftype: branch X-Git-Commit: 246fadcb2d974dfe5850932763ab492f3395edc3 Auto-Submitted: auto-generated Date: Tue, 17 Nov 2026 01:09:41 +0000 Message-Id: <6afba955.2db.75c8abf9@gitrepo.freebsd.org> The branch stable/15 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=246fadcb2d974dfe5850932763ab492f3395edc3 commit 246fadcb2d974dfe5850932763ab492f3395edc3 Author: Konstantin Belousov AuthorDate: 2026-11-05 21:28:13 +0000 Commit: Konstantin Belousov CommitDate: 2026-11-17 00:24:59 +0000 _umtx_op.2: correct the description of the valid _clockid for _umtx_time (cherry picked from commit 701ac0b230503db65b53c7ee8a211b146fcc82c9) --- 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: