timerfd_create confusion

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

 



The following paragraph in timerfd_create looks confusing to me:

      The   flags   argument   is   either  0,  to  start  a  relative  timer
      (new_value.it_interval specifies a time relative to the  current  value
      of  the  clock specified by clockid), or TFD_TIMER_ABSTIME, to start an
      absolute timer (new_value.it_interval specifies an  absolute  time  for
      the clock specified by clockid; that is, the timer will expire when the
      value of that clock reaches the value specified in  new_value.it_inter-
      val).

The way I parse this, it makes more sense if the flags argument actually applies to the it_value field, the field that sets the initial timer expiration, rather than it_interval, the periodic timer expiration duration.


Attachment: pgp49qFpxuzax.pgp
Description: PGP signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux