Lines Matching defs:victim
661 uint32_t uc_nextvictim; /* points to next victim in fifo list */
746 static const char cache_set_err1[] = "victim not found";
747 static const char cache_set_err2[] = "victim alloc failed";
754 cache_ptr victim;
782 victim = uc->uc_fifo[uc->uc_nextvictim];
783 if (victim != NULL) {
785 loc = CACHE_LOC(parent, victim->cache_xid);
787 *vicp != NULL && *vicp != victim;
795 *vicp = victim->cache_next; /* remove from cache */
796 newbuf = victim->cache_reply;
798 victim = malloc(sizeof (struct cache_node));
799 if (victim == NULL) {
807 free(victim);
831 free(victim);
837 victim->cache_replylen = replylen;
838 victim->cache_reply = rpc_buffer(xprt);
843 victim->cache_xid = su->su_xid;
844 victim->cache_proc = uc->uc_proc;
845 victim->cache_vers = uc->uc_vers;
846 victim->cache_prog = uc->uc_prog;
847 victim->cache_addr = xprt->xp_rtaddr;
848 victim->cache_addr.buf = newbuf2;
849 (void) memcpy(victim->cache_addr.buf, xprt->xp_rtaddr.buf,
852 loc = CACHE_LOC(parent, victim->cache_xid);
853 victim->cache_next = uc->uc_entries[loc];
854 uc->uc_entries[loc] = victim;
855 uc->uc_fifo[uc->uc_nextvictim++] = victim;