Lines Matching defs:item
265 idtoname_lookup(struct ent *item)
268 &item->h,
269 idtoname_hash(item));
433 nametoid_lookup(struct ent *item)
436 &item->h,
437 nametoid_hash(item));
528 struct cache_detail *detail, struct ent **item,
531 *item = lookup_fn(key);
532 if (!*item)
534 return cache_check(detail, &(*item)->h, &mdr->req);
540 struct ent **item)
544 *item = lookup_fn(key);
545 if (!*item)
548 if (!test_bit(CACHE_VALID, &(*item)->h.flags)
549 || (*item)->h.expiry_time < get_seconds()
550 || detail->flush_time > (*item)->h.last_refresh)
553 if (test_bit(CACHE_NEGATIVE, &(*item)->h.flags))
557 cache_put(&(*item)->h, detail);
559 *item = NULL;
566 struct cache_detail *detail, struct ent **item)
577 ret = do_idmap_lookup(lookup_fn, key, detail, item, mdr);
580 test_bit(CACHE_VALID, &(*item)->h.flags), 1 * HZ);
581 ret = do_idmap_lookup_nowait(lookup_fn, key, detail, item);
600 struct ent *item, key = {
610 ret = idmap_lookup(rqstp, nametoid_lookup, &key, &nametoid_cache, &item);
615 *id = item->id;
616 cache_put(&item->h, &nametoid_cache);
623 struct ent *item, key = {
630 ret = idmap_lookup(rqstp, idtoname_lookup, &key, &idtoname_cache, &item);
635 ret = strlen(item->name);
637 memcpy(name, item->name, ret);
638 cache_put(&item->h, &idtoname_cache);