flag parameters: NONBLOCK in signalfd
[deliverable/linux.git] / include / linux / eventfd.h
CommitLineData
e1ad7468
DL
1/*
2 * include/linux/eventfd.h
3 *
4 * Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org>
5 *
6 */
7
8#ifndef _LINUX_EVENTFD_H
9#define _LINUX_EVENTFD_H
10
e1ad7468
DL
11#ifdef CONFIG_EVENTFD
12
b087498e
UD
13/* For O_CLOEXEC */
14#include <linux/fcntl.h>
15
16/* Flags for eventfd2. */
17#define EFD_CLOEXEC O_CLOEXEC
18
e1ad7468
DL
19struct file *eventfd_fget(int fd);
20int eventfd_signal(struct file *file, int n);
21
22#else /* CONFIG_EVENTFD */
23
24#define eventfd_fget(fd) ERR_PTR(-ENOSYS)
d2fd8996
RD
25static inline int eventfd_signal(struct file *file, int n)
26{ return 0; }
e1ad7468
DL
27
28#endif /* CONFIG_EVENTFD */
29
e1ad7468
DL
30#endif /* _LINUX_EVENTFD_H */
31
This page took 0.19732 seconds and 5 git commands to generate.