cvs commit: src/sys/sys protosw.h src/sys/kern uipc_domain.cuipc_socket2.c

Andre Oppermann andre at freebsd.org
Tue Oct 19 15:18:50 PDT 2004


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


More information about the cvs-src mailing list