From owner-freebsd-current Tue Jan 7 14:43:18 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7008937B401 for ; Tue, 7 Jan 2003 14:43:17 -0800 (PST) Received: from mail.speakeasy.net (mail16.speakeasy.net [216.254.0.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE0B843E4A for ; Tue, 7 Jan 2003 14:43:16 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 9512 invoked from network); 7 Jan 2003 22:43:25 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail16.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 7 Jan 2003 22:43:25 -0000 Received: from laptop.baldwin.cx (laptop.baldwin.cx [192.168.0.4]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id h07MhEUT081311; Tue, 7 Jan 2003 17:43:15 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <15899.21130.772170.901252@grasshopper.cs.duke.edu> Date: Tue, 07 Jan 2003 17:43:22 -0500 (EST) From: John Baldwin To: Andrew Gallatin Subject: RE: mutexes and modules Cc: freebsd-current@freebsd.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 07-Jan-2003 Andrew Gallatin wrote: > > Are kernel modules pessimized in any way with respect to using > mutexes as compared to statically compiled kernel code? > > I seem to remember some discussion a year or more ago indicating that > they would be, but I'm not seeing it in the code. In the non debug case the quick cases are not inlined in modules but are always function calls. Other than that there isn't much difference. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message