cvs commit: src/sys/net if_disc.c

Robert Watson rwatson at FreeBSD.org
Tue Mar 9 08:31:21 PST 2004


rwatson     2004/03/09 08:31:20 PST

  FreeBSD src repository

  Modified files:
    sys/net              if_disc.c 
  Log:
  Introduce disc_mtx to protect the global softc list in if_disc.
  
  Since there are two destroy paths for if_disc interfaces --
  module unload and cloan interface destroy, create a new utility
  function disc_destroy(), which is callded on a softc after it
  has been removed from the global softc list; the cloaner and
  module unload entry paths will both remove it before calling
  disc_destroy().
  
  Reviewed by:    pjd
  
  Revision  Changes    Path
  1.39      +29 -8     src/sys/net/if_disc.c


More information about the cvs-src mailing list