Lines Matching defs:timerfd

36  * timerfd
41 * The timerfd analogues for timer_gettime(2) and timer_settime(2) are
44 * When a timerfd object's timer fires, an internal counter is incremented.
45 * When this counter is non-zero, the descriptor associated with the timerfd
49 * responsible for incrementing the "overrun" counter each time the timerfd
52 * This implementation is API compatible with the Linux timerfd interface.
67 #include <sys/timerfd.h>
70 /* N.B. all timerfd state is protected by itimer_lock() */
71 struct timerfd {
88 static void timerfd_wake(struct timerfd *);
91 timerfd_fire_count(const struct timerfd * const tfd)
97 timerfd_is_readable(const struct timerfd * const tfd)
105 * Called when the timerfd's timer fires.
112 struct timerfd * const tfd =
113 container_of(it, struct timerfd, tfd_itimer);
130 struct timerfd * const tfd =
131 container_of(it, struct timerfd, tfd_itimer);
154 * Create a timerfd object.
156 static struct timerfd *
159 struct timerfd * const tfd = kmem_zalloc(sizeof(*tfd), KM_SLEEP);
182 * Destroy a timerfd object.
185 timerfd_destroy(struct timerfd * const tfd)
204 * Block on a timerfd. Handles non-blocking, as well as
208 timerfd_wait(struct timerfd * const tfd, int const fflag)
246 * Wake LWPs blocked on a timerfd.
249 timerfd_wake(struct timerfd * const tfd)
259 * timerfd file operations
266 struct timerfd * const tfd = fp->f_timerfd;
305 struct timerfd * const tfd = fp->f_timerfd;
339 struct timerfd * const tfd = fp->f_timerfd;
358 struct timerfd * const tfd = fp->f_timerfd;
382 struct timerfd * const tfd = fp->f_timerfd;
393 struct timerfd * const tfd = ((file_t *)kn->kn_obj)->f_timerfd;
404 struct timerfd * const tfd = ((file_t *)kn->kn_obj)->f_timerfd;
432 struct timerfd * const tfd = ((file_t *)kn->kn_obj)->f_timerfd;
457 struct timerfd * const tfd = fp->f_timerfd;
475 .fo_name = "timerfd",
560 struct timerfd * const tfd = fp->f_timerfd;
617 struct timerfd * const tfd = fp->f_timerfd;