lkml.org 
[lkml]   [1999]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectQuestion about Kernel changes from 2.0.36 to 2.2.x
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/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.139 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site