Home
last modified time | relevance | path

Searched refs:lfu_policy (Results 1 – 1 of 1) sorted by relevance

/freebsd/usr.sbin/nscd/
H A Dcacheplcs.c359 struct cache_lfu_policy_ *lfu_policy; in cache_lfu_policy_add_item() local
363 lfu_policy = (struct cache_lfu_policy_ *)policy; in cache_lfu_policy_add_item()
367 TAILQ_INSERT_HEAD(&(lfu_policy->groups[CACHELIB_MAX_FREQUENCY - 1]), in cache_lfu_policy_add_item()
380 struct cache_lfu_policy_ *lfu_policy; in cache_lfu_policy_update_item() local
385 lfu_policy = (struct cache_lfu_policy_ *)policy; in cache_lfu_policy_update_item()
408 TAILQ_REMOVE(&(lfu_policy->groups[lfu_item->frequency]), lfu_item, in cache_lfu_policy_update_item()
411 TAILQ_INSERT_HEAD(&(lfu_policy->groups[index]), lfu_item, entries); in cache_lfu_policy_update_item()
420 struct cache_lfu_policy_ *lfu_policy; in cache_lfu_policy_remove_item() local
424 lfu_policy = (struct cache_lfu_policy_ *)policy; in cache_lfu_policy_remove_item()
427 TAILQ_REMOVE(&(lfu_policy->groups[lfu_item->frequency]), lfu_item, in cache_lfu_policy_remove_item()
[all …]