OpenCores
URL https://opencores.org/ocsvn/test_project/test_project/trunk

Subversion Repositories test_project

[/] [test_project/] [trunk/] [linux_sd_driver/] [include/] [linux/] [eventfd.h] - Blame information for rev 81

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 62 marcus.erl
/*
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
 
16
struct file *eventfd_fget(int fd);
17
int eventfd_signal(struct file *file, int n);
18
 
19
#else /* CONFIG_EVENTFD */
20
 
21
#define eventfd_fget(fd) ERR_PTR(-ENOSYS)
22
static inline int eventfd_signal(struct file *file, int n)
23
{ return 0; }
24
 
25
#endif /* CONFIG_EVENTFD */
26
 
27
#endif /* __KERNEL__ */
28
 
29
#endif /* _LINUX_EVENTFD_H */
30
 

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.