cvs commit: src/sys/pci if_pcn.c if_pcnreg.h

John Baldwin jhb at FreeBSD.org
Fri Aug 5 16:03:17 GMT 2005


jhb         2005-08-05 16:03:16 UTC

  FreeBSD src repository

  Modified files:
    sys/pci              if_pcn.c if_pcnreg.h 
  Log:
  Fix up the locking in pcn(4) and mark it MPSAFE.
  - Add locked versions of the init() and start() methods.
  - Use callout_*() rather than timeout().
  - Make the driver lock non-recursive.
  - Push down locking in detach() and ioctl().
  - Fix the tick routine to bail if the interface has been stopped and use
    callout_drain() in detach() after the call to stop().
  - Lock the driver lock in the ifmedia handlers.
  
  Tested by:      Ketrien I. Saihr-Kesenchedra ketrien at error404.nls.net
  MFC after:      1 week
  
  Revision  Changes    Path
  1.71      +59 -35    src/sys/pci/if_pcn.c
  1.12      +1 -1      src/sys/pci/if_pcnreg.h


More information about the cvs-src mailing list