Displaying 2 results from an estimated 2 matches for "io_epoll_output".
2004 Oct 25
0
[PATCH] move iolist functions into separate file
...d_index;
};
-struct io_list {
- struct io *ios[EPOLL_IOS_PER_FD];
-};
-
void io_loop_handler_init(struct ioloop *ioloop)
{
struct ioloop_handler_data *data;
@@ -74,58 +64,6 @@ void io_loop_handler_deinit(struct ioloo
#define IO_EPOLL_INPUT (EPOLLIN | EPOLLPRI | EPOLLERR | EPOLLHUP)
#define IO_EPOLL_OUTPUT (EPOLLOUT | EPOLLERR | EPOLLHUP)
-static int epoll_event_mask(struct io_list *list)
-{
- int events = 0, i;
- struct io *io;
-
- for (i = 0; i < EPOLL_IOS_PER_FD; i++) {
- io = list->ios[i];
-
- if (io == NULL)
- continue;
-
- if (io->condition & IO_READ)
- events |= IO_EPOLL_...
2004 Aug 30
0
[PATCH] [RFC] epoll based ioloop handler (now with patch)
...andler_data;
+
+ close(data->epfd);
+ p_free(ioloop->pool, ioloop->handler_data->events);
+ p_free(ioloop->pool, ioloop->handler_data->fd_index);
+ p_free(ioloop->pool, ioloop->handler_data);
+}
+
+#define IO_EPOLL_INPUT (EPOLLIN | EPOLLPRI | EPOLLERR | EPOLLHUP)
+#define IO_EPOLL_OUTPUT (EPOLLOUT | EPOLLERR | EPOLLHUP)
+
+static int epoll_event_mask(struct io_list *list)
+{
+ int events = 0, i;
+ struct io *io;
+
+ for (i = 0; i < list->count; i++) {
+ io = list->ios[i];
+
+ if (!io)
+ continue;
+
+ if (io->condition & IO_READ)
+ events |= IO_EPOLL_INPUT;
+...