From owner-cvs-all@FreeBSD.ORG Fri Dec 24 16:24:53 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D9B416A4CE; Fri, 24 Dec 2004 16:24:53 +0000 (GMT) Received: from mail.chesapeake.net (chesapeake.net [208.142.252.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CFD643D46; Fri, 24 Dec 2004 16:24:52 +0000 (GMT) (envelope-from jroberson@chesapeake.net) Received: from mail.chesapeake.net (localhost [127.0.0.1]) by mail.chesapeake.net (8.12.10/8.12.10) with ESMTP id iBOGOoOx044067; Fri, 24 Dec 2004 11:24:50 -0500 (EST) (envelope-from jroberson@chesapeake.net) Received: from localhost (jroberson@localhost)iBOGOoW2044063; Fri, 24 Dec 2004 11:24:50 -0500 (EST) (envelope-from jroberson@chesapeake.net) X-Authentication-Warning: mail.chesapeake.net: jroberson owned process doing -bs Date: Fri, 24 Dec 2004 11:24:50 -0500 (EST) From: Jeff Roberson To: David Xu In-Reply-To: <200412181252.iBICqjN6052974@repoman.freebsd.org> Message-ID: <20041224112430.E60504@mail.chesapeake.net> References: <200412181252.iBICqjN6052974@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys proc.h syscall.h syscall.mk sysproto.h umtx.h src/sys/kern init_sysent.c kern_umtx.c syscalls.c syscalls.master X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2004 16:24:53 -0000 On Sat, 18 Dec 2004, David Xu wrote: > davidxu 2004-12-18 12:52:45 UTC > > FreeBSD src repository > > Modified files: > sys/sys proc.h syscall.h syscall.mk sysproto.h > umtx.h > sys/kern init_sysent.c kern_umtx.c syscalls.c > syscalls.master > Log: > 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. Thanks David. This was one of my long term goals for umtx. I'm glad someone did this. > 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. > > Revision Changes Path > 1.181 +1 -0 src/sys/kern/init_sysent.c > 1.19 +544 -170 src/sys/kern/kern_umtx.c > 1.167 +1 -0 src/sys/kern/syscalls.c > 1.181 +2 -0 src/sys/kern/syscalls.master > 1.414 +2 -2 src/sys/sys/proc.h > 1.164 +3 -2 src/sys/sys/syscall.h > 1.119 +3 -2 src/sys/sys/syscall.mk > 1.163 +9 -1 src/sys/sys/sysproto.h > 1.5 +51 -3 src/sys/sys/umtx.h >