at v4.11-rc3 888 B view raw
1/* 2 * include/linux/timerfd.h 3 * 4 * Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org> 5 * 6 */ 7 8#ifndef _UAPI_LINUX_TIMERFD_H 9#define _UAPI_LINUX_TIMERFD_H 10 11#include <linux/types.h> 12 13/* For O_CLOEXEC and O_NONBLOCK */ 14#include <linux/fcntl.h> 15 16/* For _IO helpers */ 17#include <linux/ioctl.h> 18 19/* 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 24 * shared O_* flags. 25 * 26 * Also make sure to update the masks in include/linux/timerfd.h 27 * when adding new flags. 28 */ 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 33 34#define TFD_IOC_SET_TICKS _IOW('T', 0, __u64) 35 36#endif /* _UAPI_LINUX_TIMERFD_H */