Lines Matching refs:victim
411 u_int uc_nextvictim; /* points to next victim in fifo list */
494 static const char cache_set_err1[] = "victim not found";
495 static const char cache_set_err2[] = "victim alloc failed";
503 cache_ptr victim;
524 victim = uc->uc_fifo[uc->uc_nextvictim];
525 if (victim != NULL) {
526 loc = CACHE_LOC(xprt, victim->cache_xid);
528 *vicp != NULL && *vicp != victim;
536 *vicp = victim->cache_next; /* remove from cache */
537 newbuf = victim->cache_reply;
539 victim = ALLOC(struct cache_node, 1);
540 if (victim == NULL) {
548 FREE(victim, struct cache_node, 1);
568 victim->cache_replylen = replylen;
569 victim->cache_reply = rpc_buffer(xprt);
573 victim->cache_xid = su->su_xid;
574 victim->cache_proc = uc->uc_proc;
575 victim->cache_vers = uc->uc_vers;
576 victim->cache_prog = uc->uc_prog;
577 victim->cache_addr = xprt->xp_rtaddr;
578 victim->cache_addr.buf = ALLOC(char, xprt->xp_rtaddr.len);
579 (void) memcpy(victim->cache_addr.buf, xprt->xp_rtaddr.buf,
581 loc = CACHE_LOC(xprt, victim->cache_xid);
582 victim->cache_next = uc->uc_entries[loc];
583 uc->uc_entries[loc] = victim;
584 uc->uc_fifo[uc->uc_nextvictim++] = victim;