Davide Libenzi | e1ad746 | 2007-05-10 22:23:19 -0700 | [diff] [blame] | 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 | |
Davide Libenzi | e1ad746 | 2007-05-10 22:23:19 -0700 | [diff] [blame] | 11 | #ifdef CONFIG_EVENTFD |
| 12 | |
| 13 | struct file *eventfd_fget(int fd); |
| 14 | int eventfd_signal(struct file *file, int n); |
| 15 | |
| 16 | #else /* CONFIG_EVENTFD */ |
| 17 | |
| 18 | #define eventfd_fget(fd) ERR_PTR(-ENOSYS) |
Randy Dunlap | d2fd899 | 2007-06-27 14:09:48 -0700 | [diff] [blame] | 19 | static inline int eventfd_signal(struct file *file, int n) |
| 20 | { return 0; } |
Davide Libenzi | e1ad746 | 2007-05-10 22:23:19 -0700 | [diff] [blame] | 21 | |
| 22 | #endif /* CONFIG_EVENTFD */ |
| 23 | |
Davide Libenzi | e1ad746 | 2007-05-10 22:23:19 -0700 | [diff] [blame] | 24 | #endif /* _LINUX_EVENTFD_H */ |
| 25 | |