Displaying 9 results from an estimated 9 matches for "epfd".
Did you mean:
  epf
  
2004 Aug 30
0
[PATCH] [RFC] epoll based ioloop handler (now with patch)
...er 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)
+{
+	struct ioloop_handler_data *data;
+
+	ioloop-&g...
2004 Jun 28
4
Chan_Capi Down
...ceived CONNECT_CONF PLCI = 0x101 INFO = 0
    -- DISCONNECT_IND ID=003 #0x0002 LEN=0014
  Controller/PLCI/NCCI            = 0x101
  Reason                          = 0x3302
 
  == DISCONNECT_IND PLCI=0x101 REASON=0x3302
  == Spawn extension (OutDial-Dial, 01723168212, 2) exited non-zero on
'SIP/ePfd-7515'
    -- data = @89930:01079h
    -- capi request omsn = @89930
  == found capi with omsn = 89930
  == CAPI Call CAPI[contr1/89930]/3   == CAPI Call CAPI[contr1/89930]/3
-- CONNECT_CONF ID=003 #0x000e LEN=0014
  Controller/PLCI/NCCI            = 0x101
  Info                            = 0x0...
2008 Jan 04
13
Unable to delete epoll event
I occasionally get a fatal error
unable to delete epoll event: Bad file descriptor
I think the attached patch will fix it.
The patch does two things:
1) changes the error we look for from ENOENT to EBADF.  It is hard to
reproduce this error, but if I change the epoll_ctl line to
  epoll_ctl(epfd, EPOLL_CTL_DEL, 666, ed->GetEpollEvent());
it does return -1 with errno = EBADF on my Linux 2.6.9 system.
2) it tests the variable errno, not e.  This obviously was a typo, so
even if some systems do return ENOENT for this condition, they still
would have crashed.
Now if only I knew why the so...
2023 Aug 30
2
[libnbd PATCH 0/2] (Attempt to) fix Rust on BSD-based builds
I managed to get a build of the async Rust handle compiling on FreeBSD
(although the cirrus CI appears to not actually run 'make check' on
non-Linux machines, at least when run on my fork):
https://gitlab.com/ebblake/libnbd/-/jobs/4985192286
However, I'd really like Tage's review on patch 2 to see if my Rust
makes sense.
Eric Blake (2):
  maint: Favor 4-space indent in .rs files
2004 Oct 07
0
[PATCH] add missing error check in epoll code
...lla/src/lib/ioloop-epoll.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
Si...
2004 May 09
1
No outbound calls at a PRI possible
...tel.conf
#amt (carrier)
span=1,1,0,ccs,hdb3,crc4
bchan=1-15
dchan=16
bchan=17-31
#hicom (siemens)
span=2,1,0,ccs,hdb3,crc4
bchan=32-46
dchan=47
bchan=48-62
loadzone=uk
defaultzone=uk
channel => 48-62
PRI Debugging Infos:
Call to Carrier: (Destination was 899312)
    -- Executing Dial("SIP/ePfd-b455", "Zap/1/899312|60") in new stack
-- Making new call for cr 32774
> Protocol Discriminator: Q.931 (8)  len=40
> Call Ref: len= 2 (reference 6/0x6) (Originator)
> Message type: SETUP (5)
> Bearer Capability (len= 3) [ Ext: 1  Q.931 Std: 0  Info transfer
capability: Sp...
2008 Sep 24
2
[Dovecot 1.1.3] Strange problem with attachment download
Hello everyone,
I am testing Dovecot 1.1.3 at the moment to see if I can migrate from 
UW-Imap(mbox) to Dovecot(maildir). Because I dont' want to influence the 
production server I installed Dovecot on an ununsed computer with some 
dummy-testusers using ssl and maildir. Installation was without any 
problems and everything works fine with one exception: I cannot download 
some attachments.
2007 Mar 05
0
[PATCH 3/10] linux 2.6.18: constify instances of ''struct file_operations''
...*fops);
++static struct inode *ep_eventpoll_inode(const struct file_operations *fops);
  static int eventpollfs_get_sb(struct file_system_type *fs_type,
  			      int flags, const char *dev_name,
  			      void *data, struct vfsmount *mnt);
@@ -221,7 +221,7 @@ asmlinkage long sys_epoll_pwait(int epfd
 -static int ep_getfd(int *efd, struct inode **einode, struct file **efile,
 -		    struct eventpoll *ep)
 +int ep_getfd(int *efd, struct inode **einode, struct file **efile,
-+		    struct eventpoll *ep, struct file_operations *fops)
++		    struct eventpoll *ep, const struct file_operations *fops...
2004 Oct 25
0
[PATCH] move iolist functions into separate file
...ile */
 
 #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_data *data;
@@ -74,58 +64,6 @@ void io_loop_han...