carp.cc File Reference
#include "squid.h"
#include "CachePeer.h"
#include "CachePeers.h"
#include "carp.h"
#include "HttpRequest.h"
#include "mgr/Registration.h"
#include "neighbors.h"
#include "PeerSelectState.h"
#include "SquidConfig.h"
#include "Store.h"
#include <cmath>
Include dependency graph for carp.cc:

Go to the source code of this file.

Macros

#define ROTATE_LEFT(x, n)   (((x) << (n)) | ((x) >> (32-(n))))
 

Functions

static auto & CarpPeers ()
 CARP cache_peers ordered by their CARP weight. More...
 
static int peerSortWeight (const void *a, const void *b)
 
static void carpRegisterWithCacheManager (void)
 
void carpInit (void)
 
CachePeercarpSelectParent (PeerSelector *ps)
 
static void carpCachemgr (StoreEntry *sentry)
 

Variables

static OBJH carpCachemgr
 

Macro Definition Documentation

◆ ROTATE_LEFT

#define ROTATE_LEFT (   x,
 
)    (((x) << (n)) | ((x) >> (32-(n))))

Definition at line 24 of file carp.cc.

Function Documentation

◆ carpCachemgr()

static void carpCachemgr ( StoreEntry sentry)
static

Definition at line 215 of file carp.cc.

References CarpPeers(), and storeAppendPrintf().

◆ carpInit()

void carpInit ( void  )

◆ CarpPeers()

static auto & CarpPeers ( )
static

Definition at line 28 of file carp.cc.

Referenced by carpCachemgr(), carpInit(), and carpSelectParent().

◆ carpRegisterWithCacheManager()

static void carpRegisterWithCacheManager ( void  )
static

Definition at line 45 of file carp.cc.

References carpCachemgr, and Mgr::RegisterAction().

Referenced by carpInit().

◆ carpSelectParent()

◆ peerSortWeight()

static int peerSortWeight ( const void *  a,
const void *  b 
)
static

Definition at line 37 of file carp.cc.

References CachePeer::weight.

Referenced by carpInit().

Variable Documentation

◆ carpCachemgr

OBJH carpCachemgr
static

Definition at line 34 of file carp.cc.

Referenced by carpRegisterWithCacheManager().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors