CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2015/11/20 05:27:42

Modified files:
        sys/net        : if.c if.h 

Log message:
Keep if_ref() private, if_get() is what you want to use before if_put().

The thread detaching an interface will sleep until all references to this
interface have been released.  So we decided to only keep references for
a short period of time.

Keeping if_ref() private will hopefully help preserve this goal as long
as it makes sense.

Calling if_get()/if_put() in the same function also allows us to make
use of static analysis tools (thanks jsg@!) to catch our errors.

ok dlg@

Reply via email to