cvs commit: src/sys/dev/usb ugen.c

Brian Feldman green at FreeBSD.org
Sat Oct 2 15:49:54 PDT 2004


green       2004-10-02 22:49:54 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/usb          ugen.c 
  Log:
  * Use two cdevsw's for ugen(4): one for control endpoints, and one for
    data endpoints.  The control endpoint doesn't need read/write/poll
    operations, and more importantly, the thread counts should be
    separate so that the control endpoint can properly reference itself
    while deleting and recreating the data endpoints.
  * Add some macros that handle referencing/releasing devices, and use them
    for sleeping/woken-up and open/close operations as apppropriate.
  * Use d_purge for FreeBSD, and a loop testing the open status for all
    the endpoints for NetBSD and OpenBSD, so that when the device is
    detached, the right thing always happens.
  
  Revision  Changes    Path
  1.94      +91 -20    src/sys/dev/usb/ugen.c


More information about the cvs-all mailing list