store_repl_lru.cc File Reference
#include "squid.h"
#include "MemObject.h"
#include "SquidTime.h"
#include "Store.h"
#include "mem/Pool.h"
Include dependency graph for store_repl_lru.cc:

Go to the source code of this file.

Classes

struct  LruPolicyData
 
struct  _LruNode
 
struct  _LruWalkData
 
struct  _LruPurgeData
 

Typedefs

typedef struct _LruNode LruNode
 
typedef struct _LruWalkData LruWalkData
 
typedef struct _LruPurgeData LruPurgeData
 

Functions

static enum
LruPolicyData::heap_entry_type 
repl_guessType (StoreEntry *entry, RemovalPolicyNode *node)
 
static void lru_add (RemovalPolicy *policy, StoreEntry *entry, RemovalPolicyNode *node)
 
static void lru_remove (RemovalPolicy *policy, StoreEntry *entry, RemovalPolicyNode *node)
 
static void lru_referenced (RemovalPolicy *policy, const StoreEntry *entry, RemovalPolicyNode *node)
 
static const StoreEntrylru_walkNext (RemovalPolicyWalker *walker)
 
static void lru_walkDone (RemovalPolicyWalker *walker)
 
static RemovalPolicyWalkerlru_walkInit (RemovalPolicy *policy)
 
static StoreEntrylru_purgeNext (RemovalPurgeWalker *walker)
 
static void lru_purgeDone (RemovalPurgeWalker *walker)
 
static RemovalPurgeWalkerlru_purgeInit (RemovalPolicy *policy, int max_scan)
 
static void lru_stats (RemovalPolicy *policy, StoreEntry *sentry)
 
static void lru_free (RemovalPolicy *policy)
 
RemovalPolicycreateRemovalPolicy_lru (wordlist *args)
 

Variables

REMOVALPOLICYCREATE createRemovalPolicy_lru
 
static MemAllocatorlru_node_pool = NULL
 
static int nr_lru_policies = 0
 

Typedef Documentation

typedef struct _LruNode LruNode

Definition at line 69 of file store_repl_lru.cc.

typedef struct _LruPurgeData LruPurgeData

RemovalPurgeWalker

Definition at line 191 of file store_repl_lru.cc.

typedef struct _LruWalkData LruWalkData

RemovalPolicyWalker

Definition at line 140 of file store_repl_lru.cc.

Function Documentation

static void lru_free ( RemovalPolicy policy)
static
static void lru_purgeDone ( RemovalPurgeWalker walker)
static
static RemovalPurgeWalker* lru_purgeInit ( RemovalPolicy policy,
int  max_scan 
)
static
static void lru_referenced ( RemovalPolicy policy,
const StoreEntry entry,
RemovalPolicyNode node 
)
static
static void lru_remove ( RemovalPolicy policy,
StoreEntry entry,
RemovalPolicyNode node 
)
static
static const StoreEntry* lru_walkNext ( RemovalPolicyWalker walker)
static

Variable Documentation

REMOVALPOLICYCREATE createRemovalPolicy_lru

Definition at line 21 of file store_repl_lru.cc.

Referenced by testUfs::commonInit(), and testRock::commonInit().

MemAllocator* lru_node_pool = NULL
static

Definition at line 78 of file store_repl_lru.cc.

int nr_lru_policies = 0
static

Definition at line 79 of file store_repl_lru.cc.

Referenced by createRemovalPolicy_lru().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors