![]() | ||||||||||
Messages in this thread |
On Sat, 2005-10-15 at 12:00 +0200, Gabriele Brugnoni wrote: > Hello, > > I'm writing a device driver for a UART to be used to drive a RS485 line. > I would use the interruptible_sleep_on function to wait for receiver ready, > or for the transmitter to finish. don't. interruptible_sleep_on() is a broken interface (see the comments in the header) and should not be used in any new code (where "new" is "since the year 2000" :) Just use the wait_event() interfaces .... or just a simple semaphore even if what you want to do is simple and performance isn't too critical. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | |||||||||
| Last update: 2005-10-15 08:08 [W:0.225 / U:0.230 seconds] ©2003-2008 Jasper Spaans | ||||||||||