Re: timerfd_create confusion

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

 



Hi Sam,

On Tue, Sep 16, 2008 at 4:26 AM, Sam Varshavchik <mrsam@xxxxxxxxxxxxxxx> wrote:
> 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.

Yes, you are right; a moment of inattention when I wrote that text.
Fixed for 3.10.

thanks,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html
Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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