From owner-cvs-src@FreeBSD.ORG Tue Oct 19 22:18:50 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03FBB16A4D0 for ; Tue, 19 Oct 2004 22:18:50 +0000 (GMT) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C7B143D3F for ; Tue, 19 Oct 2004 22:18:49 +0000 (GMT) (envelope-from andre@freebsd.org) Received: (qmail 62617 invoked from network); 19 Oct 2004 22:17:44 -0000 Received: from unknown (HELO freebsd.org) ([62.48.0.53]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 19 Oct 2004 22:17:44 -0000 Message-ID: <417592CD.64092D9E@freebsd.org> Date: Wed, 20 Oct 2004 00:18:53 +0200 From: Andre Oppermann X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Julian Elischer References: <200410191513.i9JFDUbf072176@repoman.freebsd.org> <417532A2.9000901@errno.com> <41753522.1E39FEAE@freebsd.org> <200410192329.46723.max@love2party.net> <41758B35.D5340AEA@freebsd.org> <41759110.6010005@elischer.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: Max Laier cc: src-committers@FreeBSD.org cc: cvs-src@FreeBSD.org cc: cvs-all@FreeBSD.org cc: Sam Leffler Subject: Re: cvs commit: src/sys/sys protosw.h src/sys/kern uipc_domain.cuipc_socket2.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2004 22:18:50 -0000 Julian Elischer wrote: > > Andre Oppermann wrote: > >>Another point: If you really want to keep the possibility to remove a > >>protocol, you have to introduce some busy counter that pervents removal while > >>the kernel is inside a protocol function. This has to be handled by the > >>protocol itself, but it has to be taken care of somehow. > >> > > each protocol array entry could have either a mutex or a refcount or both.. That is unpractical. Please have a deep look into the protosw[] mechanism. Any such refcounting has to be done on a protocol specific level. -- Andre