Date: Sun, 20 Mar 2005 15:17:32 +0100 From: Sebastien B <sebastien.b@swissinfo.org> To: freebsd-usb@freebsd.org Subject: Can we block in USB_ATTACH context ? Message-ID: <200503201517.33598.sebastien.b@swissinfo.org>
next in thread | raw e-mail | index | archive | help
Hello, Can I call functions that will block (ie. waiting for condition variables, acquiring MTX_DEF mutexes, ...) inside the USB_ATTACH section of a driver ? Or should I use a software interrupt handler that will perform the initialization of my USB device instead of doing this directly in USB_ATTACH ? (Lots of transfers have to be made before the device is ready... setting up the NET2280 PCI bridge, uploading a ~30kbyte firmware, reading configuration options of the device...) Thanks, Sebastien
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503201517.33598.sebastien.b>