From: | Peter Avalos <pavalos@xxxxxxxxxxxx> |
Date: | Mon, 31 Dec 2007 17:21:45 -0500 |
Mail-followup-to: | kernel@crater.dragonflybsd.org |
On Mon, Dec 31, 2007 at 08:32:40AM -0800, Matthew Dillon wrote: > > I suggest trying to use the serializing locks (kern/lwkt_serialize.c). > Look at various network device drivers on how to install a serializing > lock w/ the interrupt. Note that some reworking of the code might be > needed since the ahc/ahd interrupt code probably tries to release/reaquire > and/or do other nasty things when, in fact, you just want it to hold the > lock through the whole mess. > So basically put a serializer lock in the sotfc, then use that lock when calling bus_setup_intr? Are there any particular rules w/ tsleep? Can I use msleep on a serializer? --Peter
Attachment:
pgp00005.pgp
Description: PGP signature