Porting char driving from 2.2 to 2.4 : changes in API to know

From: Alex Ivchenko (aivchenko@ueidaq.com)
Date: Mon Jul 16 2001 - 19:09:25 EST


I'm porting dataq driver from 2.2 to 2.4 and found a problem with using
interruptible_sleep_on_timeout() and wake_up_interruptible().

Knowing that wait queue was reorganized in 2.4 I declared queue head as:


and then in ioctl routine

// put request on hold
interruptible_sleep_on_timeout(&wqhead, jiffies);


// release process

interruptible_sleep_on_timeout() works correctly and releases process when timeout
expires. However wake_up_interruptible() doesn't work.

1. Is "interruptible" functions still recommended for use under 2.4?
2. What other changes made can potentially affect this mechanism?
3. Should I use some special options/flags to compile modules under 2.4
(beyond discussed in lkml FAQ)?


-- Alex Ivchenko, Ph.D. United Electronic Industries, Inc. "The High-Performance Alternative (tm)" -- 10 Dexter Avenue Watertown, Massachusetts 02472 Tel: (617) 924-1155 x 222 Fax: (617) 924-1441 http://www.ueidaq.com - 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/

This archive was generated by hypermail 2b29 : Mon Jul 23 2001 - 21:00:08 EST