ModKqueue.cc File Reference
#include "squid.h"
#include "comm/Loops.h"
#include "fde.h"
#include "globals.h"
#include "SquidTime.h"
#include "StatCounters.h"
#include "Store.h"
#include <cerrno>
Include dependency graph for ModKqueue.cc:

Go to the source code of this file.

Macros

#define KE_LENGTH   128
 
#define EV_SET(kevp, a, b, c, d, e, f)
 

Functions

static void kq_update_events (int, short, PF *)
 
static void commKQueueRegisterWithCacheManager (void)
 

Variables

static int kq
 
static struct timespec zero_timespec
 
static struct kevent * kqlst
 
static int kqmax
 
static int kqoff
 
static int max_poll_time = 1000
 

Macro Definition Documentation

#define EV_SET (   kevp,
  a,
  b,
  c,
  d,
  e,
 
)
Value:
do { \
(kevp)->ident = (a); \
(kevp)->filter = (b); \
(kevp)->flags = (c); \
(kevp)->fflags = (d); \
(kevp)->data = (e); \
(kevp)->udata = (f); \
} while(0)
void const char HLPCB void * data
Definition: stub_helper.cc:16
int a
Definition: membanger.c:50

Definition at line 52 of file ModKqueue.cc.

Referenced by kq_update_events().

#define KE_LENGTH   128

Definition at line 47 of file ModKqueue.cc.

Function Documentation

static void commKQueueRegisterWithCacheManager ( void  )
static

Definition at line 305 of file ModKqueue.cc.

void kq_update_events ( int  fd,
short  filter,
PF handler 
)
static

Definition at line 78 of file ModKqueue.cc.

References EV_SET, fd_table, kq, kqlst, kqmax, kqoff, NULL, and zero_timespec.

Variable Documentation

int kq
static

Definition at line 63 of file ModKqueue.cc.

Referenced by kq_update_events().

struct kevent* kqlst
static

Definition at line 67 of file ModKqueue.cc.

Referenced by kq_update_events().

int kqmax
static

Definition at line 68 of file ModKqueue.cc.

Referenced by kq_update_events().

int kqoff
static

Definition at line 69 of file ModKqueue.cc.

Referenced by kq_update_events().

int max_poll_time = 1000
static

Definition at line 70 of file ModKqueue.cc.

struct timespec zero_timespec
static

Definition at line 65 of file ModKqueue.cc.

Referenced by kq_update_events().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors