cache_cleaner Struct Reference

Accesses to a cache cleaner object are synchronized through task/event serialization, or locked from the cache object. More...


Data Fields

isc_mutex_t lock
 Locks overmem_event, overmem. Note: never allocate memory while holding this lock - that could lead to deadlock since the lock is take by water() which is called from the memory allocator.
dns_cache_tcache
isc_task_ttask
unsigned int cleaning_interval
isc_timer_tcleaning_timer
 The cleaning-interval from named.conf, in seconds.
isc_event_tresched_event
isc_event_tovermem_event
 Sent by cleaner task to itself to reschedule.
dns_dbiterator_titerator
unsigned int increment
cleaner_state_t state
 Number of names to clean in one increment.
isc_boolean_t overmem
 Idle/Busy.
isc_boolean_t replaceiterator
 The cache is in an overmem state.


Detailed Description

Accesses to a cache cleaner object are synchronized through task/event serialization, or locked from the cache object.

Definition at line 96 of file cache.c.


Field Documentation

isc_mutex_t cache_cleaner::lock

Locks overmem_event, overmem. Note: never allocate memory while holding this lock - that could lead to deadlock since the lock is take by water() which is called from the memory allocator.

Definition at line 98 of file cache.c.

Referenced by cache_cleaner_init(), cache_free(), dns_cache_flush(), incremental_cleaning_action(), overmem_cleaning_action(), and water().

dns_cache_t* cache_cleaner::cache

Definition at line 105 of file cache.c.

Referenced by begin_cleaning(), cache_cleaner_init(), end_cleaning(), and incremental_cleaning_action().

isc_task_t* cache_cleaner::task

Definition at line 106 of file cache.c.

Referenced by begin_cleaning(), cache_cleaner_init(), cache_free(), cleaner_shutdown_action(), cleaning_timer_action(), dns_cache_detach(), incremental_cleaning_action(), overmem_cleaning_action(), and water().

unsigned int cache_cleaner::cleaning_interval

Definition at line 107 of file cache.c.

Referenced by cache_cleaner_init(), dns_cache_getcleaninginterval(), dns_cache_setcleaninginterval(), and end_cleaning().

isc_timer_t* cache_cleaner::cleaning_timer

The cleaning-interval from named.conf, in seconds.

Definition at line 109 of file cache.c.

Referenced by cache_cleaner_init(), cleaner_shutdown_action(), and dns_cache_setcleaninginterval().

isc_event_t* cache_cleaner::resched_event

Definition at line 110 of file cache.c.

Referenced by begin_cleaning(), cache_cleaner_init(), cache_free(), and end_cleaning().

isc_event_t* cache_cleaner::overmem_event

Sent by cleaner task to itself to reschedule.

Definition at line 112 of file cache.c.

Referenced by cache_cleaner_init(), cache_free(), overmem_cleaning_action(), and water().

dns_dbiterator_t* cache_cleaner::iterator

Definition at line 114 of file cache.c.

Referenced by begin_cleaning(), cache_cleaner_init(), cache_free(), dns_cache_flush(), end_cleaning(), and incremental_cleaning_action().

unsigned int cache_cleaner::increment

Definition at line 115 of file cache.c.

Referenced by cache_cleaner_init(), and incremental_cleaning_action().

cleaner_state_t cache_cleaner::state

Number of names to clean in one increment.

Definition at line 117 of file cache.c.

Referenced by begin_cleaning(), cache_cleaner_init(), cleaning_timer_action(), dns_cache_flush(), end_cleaning(), incremental_cleaning_action(), and overmem_cleaning_action().

isc_boolean_t cache_cleaner::overmem

Idle/Busy.

Definition at line 118 of file cache.c.

Referenced by cache_cleaner_init(), dns_cache_detach(), incremental_cleaning_action(), overmem_cleaning_action(), and water().

isc_boolean_t cache_cleaner::replaceiterator

The cache is in an overmem state.

Definition at line 119 of file cache.c.

Referenced by cache_cleaner_init(), dns_cache_flush(), and incremental_cleaning_action().


The documentation for this struct was generated from the following file:
Generated on Tue Apr 28 17:41:19 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha