cvs commit: src/sys/net if_tap.c

Robert Watson rwatson at
Sun Mar 14 17:52:02 PST 2004

rwatson     2004/03/14 17:52:00 PST

  FreeBSD src repository

  Modified files:
    sys/net              if_tap.c 
  Lock down global variables in if_tap (primarily, the tap softc list);
  add tapmtx, which protects globale variables.
  - The EBUSY check in MOD_UNLOAD may be subject to a race.  Moving the
    event handler unregister inside the mutex grab may prevent that race.
  - Locking of global variables safely is now possible because tapclones
    is only modified when the module is loading or unloading, thanks to
    phk's recent chang to clone_setup().
  - softc locking to follow.
  Revision  Changes    Path
  1.39      +28 -3     src/sys/net/if_tap.c

More information about the cvs-src mailing list