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

Go to the source code of this file.

Classes

struct  LruPolicyData
 
class  LruNode
 
struct  _LruWalkData
 
struct  _LruPurgeData
 

Typedefs

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 int nr_lru_policies = 0
 

Typedef Documentation

◆ LruPurgeData

typedef struct _LruPurgeData LruPurgeData

RemovalPurgeWalker

Definition at line 186 of file store_repl_lru.cc.

◆ LruWalkData

typedef struct _LruWalkData LruWalkData

RemovalPolicyWalker

Definition at line 135 of file store_repl_lru.cc.

Function Documentation

◆ createRemovalPolicy_lru()

◆ lru_add()

static void lru_add ( RemovalPolicy policy,
StoreEntry entry,
RemovalPolicyNode node 
)
static

◆ lru_free()

static void lru_free ( RemovalPolicy policy)
static

◆ lru_purgeDone()

static void lru_purgeDone ( RemovalPurgeWalker walker)
static

◆ lru_purgeInit()

static RemovalPurgeWalker * lru_purgeInit ( RemovalPolicy policy,
int  max_scan 
)
static

◆ lru_purgeNext()

◆ lru_referenced()

static void lru_referenced ( RemovalPolicy policy,
const StoreEntry entry,
RemovalPolicyNode node 
)
static

◆ lru_remove()

static void lru_remove ( RemovalPolicy policy,
StoreEntry entry,
RemovalPolicyNode node 
)
static

◆ lru_stats()

◆ lru_walkDone()

◆ lru_walkInit()

◆ lru_walkNext()

static const StoreEntry * lru_walkNext ( RemovalPolicyWalker walker)
static

◆ repl_guessType()

Variable Documentation

◆ createRemovalPolicy_lru

REMOVALPOLICYCREATE createRemovalPolicy_lru

Definition at line 15 of file store_repl_lru.cc.

Referenced by TestUfs::commonInit().

◆ nr_lru_policies

int nr_lru_policies = 0
static

Definition at line 74 of file store_repl_lru.cc.

Referenced by createRemovalPolicy_lru().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors