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_t * | cache |
isc_task_t * | task |
unsigned int | cleaning_interval |
isc_timer_t * | cleaning_timer |
The cleaning-interval from named.conf, in seconds. | |
isc_event_t * | resched_event |
isc_event_t * | overmem_event |
Sent by cleaner task to itself to reschedule. | |
dns_dbiterator_t * | iterator |
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. |
Definition at line 96 of file cache.c.
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().
Definition at line 105 of file cache.c.
Referenced by begin_cleaning(), cache_cleaner_init(), end_cleaning(), and incremental_cleaning_action().
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().
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().
Definition at line 110 of file cache.c.
Referenced by begin_cleaning(), cache_cleaner_init(), cache_free(), and end_cleaning().
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().
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().
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().
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().
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().