2 * include/linux/timerfd.h
8 #ifndef _UAPI_LINUX_TIMERFD_H
9 #define _UAPI_LINUX_TIMERFD_H
11 #include <linux/types.h>
13 /* For O_CLOEXEC and O_NONBLOCK */
14 #include <linux/fcntl.h>
17 #include <linux/ioctl.h>
20 * CAREFUL: Check include/asm-generic/fcntl.h when defining
21 * new flags, since they might collide with O_* ones. We want
22 * to re-use O_* flags that couldn't possibly have a meaning
23 * from eventfd, in order to leave a free define-space for
26 * Also make sure to update the masks in include/linux/timerfd.h
27 * when adding new flags.
29 #define TFD_TIMER_ABSTIME (1 << 0)
30 #define TFD_TIMER_CANCEL_ON_SET (1 << 1)
31 #define TFD_CLOEXEC O_CLOEXEC
32 #define TFD_NONBLOCK O_NONBLOCK
34 #define TFD_IOC_SET_TICKS _IOW('T', 0, __u64)
36 #endif /* _UAPI_LINUX_TIMERFD_H */