2019-02-23 17:55:38 +08:00
|
|
|
/*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
* Copyright (C) 2019 Philippe Gerum <rpm@xenomai.org>
|
|
|
|
*/
|
|
|
|
|
2019-03-10 23:25:02 +08:00
|
|
|
#ifndef _EVL_POLL_H
|
|
|
|
#define _EVL_POLL_H
|
2019-02-23 17:55:38 +08:00
|
|
|
|
|
|
|
#include <sys/types.h>
|
2019-02-26 01:30:30 +08:00
|
|
|
#include <sys/poll.h>
|
2019-02-23 17:55:38 +08:00
|
|
|
#include <linux/types.h>
|
2019-03-10 23:25:02 +08:00
|
|
|
#include <uapi/evl/poll.h>
|
2019-02-23 17:55:38 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-02-23 19:04:27 +08:00
|
|
|
int evl_new_poll(void);
|
2019-02-23 17:55:38 +08:00
|
|
|
|
|
|
|
int evl_add_pollfd(int efd, int newfd,
|
2020-04-25 01:25:19 +08:00
|
|
|
unsigned int events,
|
|
|
|
union evl_value pollval);
|
2019-02-23 17:55:38 +08:00
|
|
|
|
|
|
|
int evl_del_pollfd(int efd, int delfd);
|
|
|
|
|
|
|
|
int evl_mod_pollfd(int efd, int modfd,
|
2020-04-25 01:25:19 +08:00
|
|
|
unsigned int events,
|
|
|
|
union evl_value pollval);
|
2019-02-23 17:55:38 +08:00
|
|
|
|
|
|
|
int evl_timedpoll(int efd, struct evl_poll_event *pollset,
|
2020-03-01 22:40:54 +08:00
|
|
|
int nrset, const struct timespec *timeout);
|
2019-02-23 17:55:38 +08:00
|
|
|
|
|
|
|
int evl_poll(int efd, struct evl_poll_event *pollset,
|
|
|
|
int nrset);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2019-03-10 23:25:02 +08:00
|
|
|
#endif /* _EVL_POLL_H */
|