Displaying 3 results from an estimated 3 matches for "initial_epoll_ev".
2004 Aug 30
0
[PATCH] [RFC] epoll based ioloop handler (now with patch)
...Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+/* @UNSAFE: whole file */
+
+#include "lib.h"
+#include "ioloop-internal.h"
+
+#ifdef IOLOOP_EPOLL
+
+#include <sys/epoll.h>
+#include <unistd.h>
+
+#define INITIAL_EPOLL_EVENTS 128
+#define EPOLL_IOS_PER_FD 2
+
+struct ioloop_handler_data {
+ int epfd;
+ int events_size, events_pos;
+ struct epoll_event *events;
+
+ unsigned int idx_size;
+ struct io_list **fd_index;
+};
+
+struct io_list {
+ int count;
+ struct io *ios[EPOLL_IOS_PER_FD];
+};
+
+void io_loop_handler_i...
2004 Oct 07
0
[PATCH] add missing error check in epoll code
...poll.c 2004-09-06 00:59:47.000000000 +0400
+++ dovecot-1.0-test46/src/lib/ioloop-epoll.c 2004-10-05 21:39:52.000000000 +0400
@@ -57,6 +47,8 @@ void io_loop_handler_init(struct ioloop
data->fd_index = p_new(ioloop->pool, struct io_list *, data->idx_size);
data->epfd = epoll_create(INITIAL_EPOLL_EVENTS);
+ if (data->epfd < 0)
+ i_panic("epoll_create(): %m");
}
void io_loop_handler_deinit(struct ioloop *ioloop)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital sign...
2004 Oct 25
0
[PATCH] move iolist functions into separate file
...44.000000000 +0400
+++ dovecot-1.0-test51/src/lib/ioloop-epoll.c 2004-10-24 16:42:09.000000000 +0400
@@ -12,6 +12,7 @@
/* @UNSAFE: whole file */
#include "lib.h"
+#include "iolist.h"
#include "ioloop-internal.h"
#ifdef IOLOOP_EPOLL
@@ -21,13 +22,6 @@
#define INITIAL_EPOLL_EVENTS 128
-enum {
- EPOLL_LIST_INPUT,
- EPOLL_LIST_OUTPUT,
-
- EPOLL_IOS_PER_FD
-};
-
struct ioloop_handler_data {
int epfd;
int events_size, events_pos;
@@ -37,10 +31,6 @@ struct ioloop_handler_data {
struct io_list **fd_index;
};
-struct io_list {
- struct io *ios[EPOLL_IOS_PER_FD];
-};...