Date: Sat, 2 Oct 2004 22:49:54 +0000 (UTC) From: Brian Feldman <green@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/usb ugen.c Message-ID: <200410022249.i92MnslF029978@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410022249.i92MnslF029978>
