"schedule_timeout()" typo in ELDD?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  (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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux