Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Oct 2004 00:18:53 +0200
From:      Andre Oppermann <andre@freebsd.org>
To:        Julian Elischer <julian@elischer.org>
Cc:        Sam Leffler <sam@errno.com>
Subject:   Re: cvs commit: src/sys/sys protosw.h src/sys/kern    uipc_domain.cuipc_socket2.c
Message-ID:  <417592CD.64092D9E@freebsd.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?417592CD.64092D9E>