From owner-freebsd-questions@FreeBSD.ORG Fri Jun 6 00:37:28 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3C4337B401 for ; Fri, 6 Jun 2003 00:37:27 -0700 (PDT) Received: from hotmail.com (law9-f27.law9.hotmail.com [64.4.9.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9613C43F3F for ; Fri, 6 Jun 2003 00:37:27 -0700 (PDT) (envelope-from chaudharyanurag@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 6 Jun 2003 00:37:27 -0700 Received: from 202.144.62.166 by lw9fd.law9.hotmail.msn.com with HTTP; Fri, 06 Jun 2003 07:37:27 GMT X-Originating-IP: [202.144.62.166] X-Originating-Email: [chaudharyanurag@hotmail.com] From: "Anurag Chaudhary" To: freebsd-questions@freebsd.org Date: Fri, 06 Jun 2003 13:07:27 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 06 Jun 2003 07:37:27.0638 (UTC) FILETIME=[7AAD6F60:01C32BFE] Subject: mutex in kld X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jun 2003 07:37:28 -0000 I am using mutex in my kld. but every time i run two instances of a program that uses this driver, the system hangs. I hav put the lock function in the open function of kld and unlock in close function. There is no call to sleep. Although it is a big code to protect, but i need it that way. Is there some solution to the problem. Is lockmgr a better idea for this. this is urgent thanx Anurag _________________________________________________________________ Dress up your desktop! Get the best wallpapers. http://server1.msn.co.in/msnchannels/Entertainment/wallpaperhome.asp Just click here!