From owner-freebsd-hackers Tue Aug 6 11:23:46 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 107A237B400 for ; Tue, 6 Aug 2002 11:23:44 -0700 (PDT) Received: from web20702.mail.yahoo.com (web20702.mail.yahoo.com [216.136.226.175]) by mx1.FreeBSD.org (Postfix) with SMTP id DC98243E7B for ; Tue, 6 Aug 2002 11:23:43 -0700 (PDT) (envelope-from edlyu@yahoo.com) Message-ID: <20020806182343.89911.qmail@web20702.mail.yahoo.com> Received: from [64.124.70.190] by web20702.mail.yahoo.com via HTTP; Tue, 06 Aug 2002 11:23:43 PDT Date: Tue, 6 Aug 2002 11:23:43 -0700 (PDT) From: Ed Yu Subject: mutex in kernel modules? To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, what mutex is available when writing kernel modules? I want something like declaring of "semaphore" and be able to lock and unlock it. I found simplelock in . I saw some modules using struct mtx but I couldn't find it anywhere in the header files. Man pages for both of them do not show anything. I'm running FreeBSD-stable. Any help would be greatly appreciated. Thank you. -ed __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message