Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109852945
D27160.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D27160.diff
View Options
Index: head/lib/libc/sys/_umtx_op.2
===================================================================
--- head/lib/libc/sys/_umtx_op.2
+++ head/lib/libc/sys/_umtx_op.2
@@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd November 13, 2017
+.Dd November 16, 2020
.Dt _UMTX_OP 2
.Os
.Sh NAME
@@ -1101,6 +1101,15 @@
.It Fa obj
Pointer to the semaphore (of type
.Vt struct _usem2 ) .
+.It Fa uaddr
+Size of the memory passed in via the
+.Fa uaddr2
+argument.
+.It Fa uaddr2
+Optional pointer to a structure of type
+.Vt struct _umtx_time ,
+which may be followed by a structure of type
+.Vt struct timespec .
.El
.Pp
Put the requesting thread onto a sleep queue if the semaphore counter
@@ -1124,6 +1133,18 @@
interruption and
.Er EINTR
error.
+.Pp
+If
+.Dv UMTX_ABSTIME
+was not set, and the operation was interrupted and the caller passed in a
+.Fa uaddr2
+large enough to hold a
+.Vt struct timespec
+following the initial
+.Vt struct _umtx_time ,
+then the
+.Vt struct timespec
+is updated to contain the unslept amount.
.It Dv UMTX_OP_SEM2_WAKE
Wake up waiters on semaphore lock.
The arguments to the request are:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 11, 8:59 AM (11 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16592285
Default Alt Text
D27160.diff (1 KB)
Attached To
Mode
D27160: _umtx_op: document UMTX_OP_SEM2_WAIT copyout behavior
Attached
Detach File
Event Timeline
Log In to Comment