From owner-cvs-all@FreeBSD.ORG Thu May 31 09:14:48 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ADA7216A421; Thu, 31 May 2007 09:14:48 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 9F39B13C458; Thu, 31 May 2007 09:14:48 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l4V9EmuH028280; Thu, 31 May 2007 09:14:48 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from attilio@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l4V9Emri028273; Thu, 31 May 2007 09:14:48 GMT (envelope-from attilio) Message-Id: <200705310914.l4V9Emri028273@repoman.freebsd.org> From: Attilio Rao Date: Thu, 31 May 2007 09:14:48 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern kern_sx.c src/sys/sys sx.h src/sys/vm vm_map.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 31 May 2007 09:14:48 -0000 attilio 2007-05-31 09:14:48 UTC FreeBSD src repository Modified files: sys/kern kern_sx.c sys/sys sx.h sys/vm vm_map.c Log: Add functions sx_xlock_sig() and sx_slock_sig(). These functions are intended to do the same actions of sx_xlock() and sx_slock() but with the difference to perform an interruptible sleep, so that sleep can be interrupted by external events. In order to support these new featueres, some code renstruction is needed, but external API won't be affected at all. Note: use "void" cast for "int" returning functions in order to avoid tools like Coverity prevents to whine. Requested by: rwatson Tested by: rwatson Reviewed by: jhb Approved by: jeff (mentor) Revision Changes Path 1.53 +62 -26 src/sys/kern/kern_sx.c 1.36 +90 -64 src/sys/sys/sx.h 1.385 +2 -2 src/sys/vm/vm_map.c