Displaying 2 results from an estimated 2 matches for "epoll_ios_per_fd".
2004 Aug 30
0
[PATCH] [RFC] epoll based ioloop handler (now with patch)
...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_init(struct ioloop *ioloop)
+{
+ st...
2004 Oct 25
0
[PATCH] move iolist functions into separate file
...2: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];
-};
-
void io_loop_handler_init(struct ioloop *ioloop)
{
struct ioloop_handler_...