2 * include/linux/eventfd.h
4 * Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org>
8 #ifndef _LINUX_EVENTFD_H
9 #define _LINUX_EVENTFD_H
16 struct file *eventfd_fget(int fd);
17 int eventfd_signal(struct file *file, int n);
19 #else /* CONFIG_EVENTFD */
21 #define eventfd_fget(fd) ERR_PTR(-ENOSYS)
22 #define eventfd_signal(f, n) 0
24 #endif /* CONFIG_EVENTFD */
26 #endif /* __KERNEL__ */
28 #endif /* _LINUX_EVENTFD_H */