* Porting char driving from 2.2 to 2.4 : changes in API to know
@ 2001-07-17 0:09 Alex Ivchenko
0 siblings, 0 replies; only message in thread
From: Alex Ivchenko @ 2001-07-17 0:09 UTC (permalink / raw)
To: linux-kernel
All,
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:
static DECLARE_WAIT_QUEUE_HEAD(wqhead);
and then in ioctl routine
..
// put request on hold
interruptible_sleep_on_timeout(&wqhead, jiffies);
...
and
..
// release process
wake_up_interruptible(&wqhead);
interruptible_sleep_on_timeout() works correctly and releases process when timeout
expires. However wake_up_interruptible() doesn't work.
Questions:
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)?
--
Regards,
Alex
--
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-07-17 0:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-17 0:09 Porting char driving from 2.2 to 2.4 : changes in API to know Alex Ivchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).