How is your userspace app getting the request to shutdown? If your driver plays nice with signals, then your blocked I/O call should return with the error that it was interrupted by some signal (assuming you're using a signal to send the shutdown request). Then you can do your close and all of that good stuff. -- John Tyner jtyner@cs.ucr.edu On Thu, 28 Feb 2002, David Stroupe wrote: > Given an application that is waiting on blocked I/O. > > If that application crashes and the I/O is still blocked how can the > driver be removed with rmmod? Can the driver tell that it really isn't > in use anymore? > > If that application gets a request to shutdown while awaiting blocked > I/O, what should it tell the driver? > > TIA > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/