Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

23. Timers and Sleeping > Timers That Notify via File Descriptors: The timerfd ...

Timers That Notify via File Descriptors: The timerfd API

Starting with kernel 2.6.25, Linux provides another API for creating timers. The Linux-specific timerfd API creates a timer whose expiration notifications can be read from a file descriptor. This is useful because the file descriptor can be monitored along with other descriptors using select(), poll(), and epoll (described in Chapter 63). (With the other timer APIs discussed in this chapter, it requires some effort to be able to simultaneously monitor one or more timers along with a set of file descriptors.)

The operation of the three new system calls in this API is analogous to the operation of the timer_create(), timer_settime(), and timer_gettime() system calls described in Section 23.6.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint