From owner-freebsd-current Tue Apr 25 18:25:18 2000 Delivered-To: freebsd-current@freebsd.org Received: from relay.butya.kz (butya-gw.butya.kz [212.154.129.94]) by hub.freebsd.org (Postfix) with ESMTP id E05F037B55A for ; Tue, 25 Apr 2000 18:25:10 -0700 (PDT) (envelope-from bp@butya.kz) Received: from bp (helo=localhost) by relay.butya.kz with local-esmtp (Exim 3.13 #1) id 12kGRd-0004xT-00; Wed, 26 Apr 2000 08:16:49 +0700 Date: Wed, 26 Apr 2000 08:16:49 +0700 (ALMST) From: Boris Popov To: Jake Burkholder Cc: Bruce Evans , freebsd-current@FreeBSD.ORG Subject: Re: SMP changes and breaking kld object module compatibility In-Reply-To: <20000425160340.AE322BCA7@io.yi.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 25 Apr 2000, Jake Burkholder wrote: > Has anyone thought about using kobj(9) for this? > > For example, it should be possible to make simple_lock and lockmgr locks > safe for use from modules by introducing a lock_if.h, which has > abstract version of all the lock routines. A class would be compiled > with null implementations for UP, or the 'lock'ed implementations for SMP. kobj is a nice interface (I'm converted my NLS kernel module to use it), but may be unsuitable for lock family functions due to an additinal overhead invloved in the method call. I think that the empty-body functions will be more efficient in this case. -- Boris Popov To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message