XenevaOS
Loading...
Searching...
No Matches
eventfd.h
Go to the documentation of this file.
1/*
2 * DCL eventfd.h -- drm_syncobj's eventfd signalling is inert.
3 *
4 * eventfd_ctx_fdget() fails the ioctl up front (no eventfds on Xeneva), so
5 * the signal/put sides never run; they exist to keep the syncobj code
6 * linking and parsing. One-argument eventfd_signal() is the v7.2 signature.
7 */
8#ifndef _LINUX_EVENTFD_H
9#define _LINUX_EVENTFD_H
10
11#include <linux/err.h>
12#include <linux/types.h>
13
16};
17
18static inline struct eventfd_ctx *eventfd_ctx_fdget(int fd)
19{
20 (void)fd;
21 return ERR_PTR(-ENOSYS);
22}
23
24static inline int eventfd_signal(struct eventfd_ctx *ctx)
25{
26 (void)ctx;
27 return 0;
28}
29
30static inline void eventfd_ctx_put(struct eventfd_ctx *ctx)
31{
32 (void)ctx;
33}
34
35#endif /* _LINUX_EVENTFD_H */
#define ERR_PTR(err)
Definition err.h:51
#define ENOSYS
Definition kernel.h:310
Definition eventfd.h:14
int _dcl_dummy
Definition eventfd.h:15
Definition file.h:140