(from now on, i'll use "ELDD" to refer to the book "essential linux
device drivers.")

  on p. 34 of ELDD, we see an example of using schedule_timeout():

  unsigned long timeout = jiffies + HZ;
  schedule_timeout(timeout);

that doesn't look right, does it?  i thought schedule_timeout() took,
as an arg, the number of clock ticks to wait.  what the above is doing
is calculating an actual *time* in the future, "jiffies + HZ"
representing the time (in jiffies) one second from now.

or am i misreading something?

rday
--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

        Linux Consulting, Training and Annoying Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Linked In:                             http://www.linkedin.com/in/rpjday
Twitter:                                       http://twitter.com/rpjday
========================================================================

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to