diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/eventfd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/eventfd.h b/include/linux/eventfd.h index a6c0eaedb1b0..a667637b54e3 100644 --- a/include/linux/eventfd.h +++ b/include/linux/eventfd.h | |||
| @@ -10,11 +10,12 @@ | |||
| 10 | 10 | ||
| 11 | #ifdef CONFIG_EVENTFD | 11 | #ifdef CONFIG_EVENTFD |
| 12 | 12 | ||
| 13 | /* For O_CLOEXEC */ | 13 | /* For O_CLOEXEC and O_NONBLOCK */ |
| 14 | #include <linux/fcntl.h> | 14 | #include <linux/fcntl.h> |
| 15 | 15 | ||
| 16 | /* Flags for eventfd2. */ | 16 | /* Flags for eventfd2. */ |
| 17 | #define EFD_CLOEXEC O_CLOEXEC | 17 | #define EFD_CLOEXEC O_CLOEXEC |
| 18 | #define EFD_NONBLOCK O_NONBLOCK | ||
| 18 | 19 | ||
| 19 | struct file *eventfd_fget(int fd); | 20 | struct file *eventfd_fget(int fd); |
| 20 | int eventfd_signal(struct file *file, int n); | 21 | int eventfd_signal(struct file *file, int n); |
