From owner-freebsd-smp Tue Apr 2 0:24:46 2002 Delivered-To: freebsd-smp@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id B925E37B41F; Tue, 2 Apr 2002 00:24:44 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id 8CADFAE026; Tue, 2 Apr 2002 00:24:44 -0800 (PST) Date: Tue, 2 Apr 2002 00:24:44 -0800 From: Alfred Perlstein To: "Andrew R. Reiter" Cc: smp@FreeBSD.org Subject: Re: Where to initialize certain locks... Message-ID: <20020402082444.GL93885@elvis.mu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * Andrew R. Reiter [020402 00:18] wrote: > On Tue, 2 Apr 2002, Andrew R. Reiter wrote: > > :On Mon, 1 Apr 2002, Alfred Perlstein wrote: > : > ::Your concern is valid, perhaps a macro that automagically makes > ::a sysinit to init a mutex? Sort of like the "SYSCALL_MODULE_HELPER" > ::stuff, but not as ugly? > :: > : > :How about something along the lines of: > > Sorry to reply to my own post, but I feel it necesary to mention that I > dislike having to pass in sub and order... Make it implicitly part of the macro. This code looks good so far, fix that and it should be good to go. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message