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

◆ LruNode

typedef struct _LruNode LruNode

Definition at line 69 of file store_repl_lru.cc.

◆ LruPurgeData

typedef struct _LruPurgeData LruPurgeData

RemovalPurgeWalker

Definition at line 191 of file store_repl_lru.cc.

◆ LruWalkData

typedef struct _LruWalkData LruWalkData

RemovalPolicyWalker

Definition at line 140 of file store_repl_lru.cc.

Function Documentation

◆ createRemovalPolicy_lru()

◆ lru_add()

◆ lru_free()

static void lru_free ( RemovalPolicy policy)
static

◆ lru_purgeDone()

◆ lru_purgeInit()

◆ 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 21 of file store_repl_lru.cc.

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

◆ lru_node_pool

MemAllocator* lru_node_pool = NULL
static

Definition at line 78 of file store_repl_lru.cc.

◆ nr_lru_policies

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