Searched refs:lru (Results 1 – 2 of 2) sorted by relevance
280 nssad_cfg_t *cp, *lru, *prev; in get_cfg() local359 lru = state.qhead; in get_cfg()360 if (pthread_rwlock_trywrlock(&lru->lock) == 0) { in get_cfg()363 if (prev->qnext != lru) in get_cfg()368 (void) pthread_rwlock_unlock(&lru->lock); in get_cfg()369 nssad_cfg_destroy(lru); in get_cfg()
203 lru = gssd_lru_head; in gssd_alloc_slot()211 if (lru->inuse) { in gssd_alloc_slot()214 &lru->ctx, NULL); in gssd_alloc_slot()240 lru->ctx = ctx; in gssd_alloc_slot()241 lru->inuse = TRUE; in gssd_alloc_slot()242 return (lru); in gssd_alloc_slot()274 if (lru == NULL) in gssd_rel_slot()277 lru->inuse = FALSE; in gssd_rel_slot()282 prev = lru->lru_prev; in gssd_rel_slot()283 next = lru->lru_next; in gssd_rel_slot()[all …]