blob: b489fc6d0b6252f9e75134d8e7ecf5e529c623c5 [file] [log] [blame]
Davide Libenzie1ad7462007-05-10 22:23:19 -07001/*
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
11
12#ifdef __KERNEL__
13
14#ifdef CONFIG_EVENTFD
15
16struct file *eventfd_fget(int fd);
17int eventfd_signal(struct file *file, int n);
18
19#else /* CONFIG_EVENTFD */
20
21#define eventfd_fget(fd) ERR_PTR(-ENOSYS)
Randy Dunlapd2fd8992007-06-27 14:09:48 -070022static inline int eventfd_signal(struct file *file, int n)
23{ return 0; }
Davide Libenzie1ad7462007-05-10 22:23:19 -070024
25#endif /* CONFIG_EVENTFD */
26
27#endif /* __KERNEL__ */
28
29#endif /* _LINUX_EVENTFD_H */
30