Question about Kernel changes from 2.0.36 to 2.2.x

Tony Preston (apreston@k2nesoft.com)
Fri, 04 Jun 1999 07:02:47 -0500


I am not sure if anyone can answer me on this one... I am maintaining a
device driver for a 9 track Magnetic tape (quit laughing...). The system is
Linux (intel based). The question I have is that in the Linux Drivers book
by O'Reilly (pg 136), there is some code on doing an interruptable delay
that looks like:

current->timeout = j;
current->state = TASK_INTERRUPTABLE;
schedule();

With the 2.0.36 and earlier kernels, the timeout field existed, with the
2.2.x kernel in RedHat 6.0, it does not. I need to redo this code, and am
trying to find out how under the newest kernel. What is the substitute
code for this?

--
-- Tony Preston, Team *AMIGA*,  Linux developer since 1996
-- Custom Services, P. O. Box 254, Moorestown, NJ 08055
-- The Amiga Zone BBS  (609) 953-8159

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/