From nobody Mon Jul 27 16:17:53 2026 X-Original-To: dev-commits-src-main@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 4h83fT73Qxz6nBcH for ; Mon, 27 Jul 2026 16:17:53 +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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h83fT4njPz438B for ; Mon, 27 Jul 2026 16:17:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785169073; 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=0+1MHmdVthddMutuqHlD068b8SDU1YYVwsKGRkboGPw=; b=OhhvCWBMD/l9jGLCtBifrhZnETClJj/Fb3LNxNo7nZ/snUd2/kO/Ei+drB36gjAarj9v5B wptiP2YCK2HxvPVrN9BFVljPrBv3rO9+7chvxLIUkgtMPj5gGrTf/Am3/k0l6QYF3+O0Ng t1/wN1zXBl7WZwnmbUU0PAjE0FdQBvPdvQfyA05Qpa9haMuD4r0wI6+G7zBDjxVlMysg5T FNUZPaZUChTJ07907O/ZZxhJzqhKyGM5lBAKVJRO7KkeTTqajICNmN+lh8P+plCKxHQXzD f/k1WEhzqo9payc1v7uSX20PApIxAnk7SFgZ2JmlA/eiHV4Cfxnq5et7UyHCqQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1785169073; a=rsa-sha256; cv=none; b=EnAO1RtozdP86b8sBz3dscxGhBHiY7HgfxSpKwFtkYk/+PQJjNqO9wx0rI62xqVRoANrD/ v2DVC0IPE3uoN+DNpw7iFWGNCL8C6wnONKgtx+pT/HCME+6KhIcKKusc6fRJVUIKn9PhgG b9+tRLjqFU4lmvFidXUWhf01IPT4MQvIj+qLmhp30wBnDozZWNl8sES+DuPznIIuzLfMgn u4C5GUnDlucM5w62rHqK+atI/J1hNTalei6jbQfQ2XcblyRo89/tCqH/emqd+Y28e59Cb9 v8VQD394/iht55BFdkMp/W/TvesO4nsT5ONHO+z6aPDy4sNWcMekm+YKK4Effg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785169073; 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=0+1MHmdVthddMutuqHlD068b8SDU1YYVwsKGRkboGPw=; b=YEQE6Gs1Ba9y09HiGjKsnH+26hhkdO1AfH4Ol4DkrTPhjEjyetAiB/dD+WqMIu4XvPol1G dKzPUORSYjND1qpYFQkgkbdNV5pIBrnveSy3jbRZAgDMOWyHMdNtLfVD71HIK7rrIoqrhq sVuJyxJ4crKHgEiNjweavtC3f+DNWwQWgDRcyT2WqX8I8nXKtc8dZWMCYz/Q68xXePEW/l Ua9L9wxWSz2wan+0jNN09REgyirn0bhGx1O4jsccsrW0yR8hM4b8qj2vWvJQg0GcepnChn VeMfJKTIf3EZ4iSpMdV0tyc4VbBWaJskj4pXeOHlsMd/FhUHghKVc++sO0wz9g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h83fT3qwxz1FS0 for ; Mon, 27 Jul 2026 16:17:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1d7fe by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 27 Jul 2026 16:17:53 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: f4a05f37936e - main - _umtx_op.2: document the CVWAIT_UMTX_TIME flag for the UMTX_OP_CV_WAIT_UC request List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: 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: f4a05f37936e422b1e8f4f127253562d3f58f50c Auto-Submitted: auto-generated Date: Mon, 27 Jul 2026 16:17:53 +0000 Message-Id: <6a6784b1.1d7fe.593a7890@gitrepo.freebsd.org> The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=f4a05f37936e422b1e8f4f127253562d3f58f50c commit f4a05f37936e422b1e8f4f127253562d3f58f50c Author: Konstantin Belousov AuthorDate: 2026-07-26 00:00:30 +0000 Commit: Konstantin Belousov CommitDate: 2026-07-27 16:17:28 +0000 _umtx_op.2: document the CVWAIT_UMTX_TIME flag for the UMTX_OP_CV_WAIT_UC request Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D58463 --- lib/libsys/_umtx_op.2 | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/lib/libsys/_umtx_op.2 b/lib/libsys/_umtx_op.2 index c590f8e8e0c8..8bdb20fa2178 100644 --- a/lib/libsys/_umtx_op.2 +++ b/lib/libsys/_umtx_op.2 @@ -752,15 +752,21 @@ After wakeup, the umutex is not relocked. .Pp The following flags are defined: -.Bl -tag -width "CVWAIT_CLOCKID" +.Bl -tag -width "CVWAIT_UMTX_TIME" .It Dv CVWAIT_ABSTIME Timeout is absolute. .It Dv CVWAIT_CLOCKID Clockid is provided. +.It Dv CVWAIT_UMTX_TIME +Timeout is specified by +.Vt struct umtx_time .El .Pp Optionally, a timeout for the request may be specified. -Unlike other requests, the timeout value is specified directly by a +If the +.Dv CVWAIT_UMTX_TIME +flag is not passed, then, unlike other requests, +the timeout value is specified directly by a .Vt struct timespec , pointed to by the .Fa uaddr2 @@ -783,6 +789,19 @@ If the flag is supplied, the timeout specifies absolute time value, otherwise it denotes a relative time interval. .Pp +Alternatively, if the +.Dv CVWAIT_UMTX_TIME +flag is passed, then the +.Dv CVWAIT_CLOCKID +and +.Dv CVWAIT_ABSTIME +flags must be not passed. +In this case, the +.Fa uaddr2 +points to the +.Va struct umtx_time +structure which specifes the timeout and clock identifier. +.Pp The request is not restartable. An unblocked signal delivered during the wait always results in sleep interruption and