eventfd.h 467 B

12345678910111213141516171819202122232425
  1. /*
  2. * include/linux/eventfd.h
  3. *
  4. * Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org>
  5. *
  6. */
  7. #ifndef _LINUX_EVENTFD_H
  8. #define _LINUX_EVENTFD_H
  9. #ifdef CONFIG_EVENTFD
  10. struct file *eventfd_fget(int fd);
  11. int eventfd_signal(struct file *file, int n);
  12. #else /* CONFIG_EVENTFD */
  13. #define eventfd_fget(fd) ERR_PTR(-ENOSYS)
  14. static inline int eventfd_signal(struct file *file, int n)
  15. { return 0; }
  16. #endif /* CONFIG_EVENTFD */
  17. #endif /* _LINUX_EVENTFD_H */