aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/syscalls.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2004-12-18 12:52:44 +0000
committerDavid Xu <davidxu@FreeBSD.org>2004-12-18 12:52:44 +0000
commit50586e8b6be3a9706d420fb99ba3c8337e979781 (patch)
tree14adfa0728612cadcbe3d5c74e0f336cd2f60fd4 /sys/kern/syscalls.c
parent9a5393ac6839b7d4952b610ee459395bac794a50 (diff)
downloadsrc-50586e8b6be3a9706d420fb99ba3c8337e979781.tar.gz
src-50586e8b6be3a9706d420fb99ba3c8337e979781.zip
1. make umtx sharable between processes, the way is two or more processes
call mmap() to create a shared space, and then initialize umtx on it, after that, each thread in different processes can use the umtx same as threads in same process. 2. introduce a new syscall _umtx_op to support timed lock and condition variable semantics. also, orignal umtx_lock and umtx_unlock inline functions now are reimplemented by using _umtx_op, the _umtx_op can use arbitrary id not just a thread id.
Notes
Notes: svn path=/head/; revision=139013
Diffstat (limited to 'sys/kern/syscalls.c')
-rw-r--r--sys/kern/syscalls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c
index 3abb7f8c6083..e61b71e31a37 100644
--- a/sys/kern/syscalls.c
+++ b/sys/kern/syscalls.c
@@ -461,4 +461,5 @@ const char *syscallnames[] = {
"getaudit_addr", /* 451 = getaudit_addr */
"setaudit_addr", /* 452 = setaudit_addr */
"auditctl", /* 453 = auditctl */
+ "_umtx_op", /* 454 = _umtx_op */
};