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 static inline int eventfd_signal(struct file *file, int n)
25 #endif /* CONFIG_EVENTFD */
27 #endif /* __KERNEL__ */
29 #endif /* _LINUX_EVENTFD_H */