Lines Matching refs:decay_t
9 * The decay_t computes the number of pages we should purge at any given time.
23 typedef struct decay_s decay_t;
87 * The current decay time setting. This is the only public access to a decay_t
91 decay_ms_read(const decay_t *decay) {
100 decay_npages_limit_get(const decay_t *decay) {
106 decay_epoch_npages_delta(const decay_t *decay) {
114 * decay_t.
117 decay_epoch_duration_ns(const decay_t *decay) {
122 decay_immediately(const decay_t *decay) {
128 decay_disabled(const decay_t *decay) {
135 decay_gradually(const decay_t *decay) {
153 * As a precondition, the decay_t must be zeroed out (as if with memset).
157 bool decay_init(decay_t *decay, nstime_t *cur_time, ssize_t decay_ms);
160 * Given an already-initialized decay_t, reinitialize it with the given decay
161 * time. The decay_t must have previously been initialized (and should not then
164 void decay_reinit(decay_t *decay, nstime_t *cur_time, ssize_t decay_ms);
169 uint64_t decay_npages_purge_in(decay_t *decay, nstime_t *time,
173 bool decay_maybe_advance_epoch(decay_t *decay, nstime_t *new_time,
183 uint64_t decay_ns_until_purge(decay_t *decay, size_t npages_current,