Lines Matching refs:ypdb

108 ypmatch_cache_delete(struct dom_binding *ypdb, struct ypmatch_ent *prev,  in ypmatch_cache_delete()  argument
112 ypdb->cache = cur->ypc_next; in ypmatch_cache_delete()
121 ypdb->ypmatch_cachecnt--; in ypmatch_cache_delete()
127 ypmatch_cache_flush(struct dom_binding *ypdb) in ypmatch_cache_flush() argument
129 struct ypmatch_ent *n, *c = ypdb->cache; in ypmatch_cache_flush()
133 ypmatch_cache_delete(ypdb, NULL, c); in ypmatch_cache_flush()
141 ypmatch_cache_expire(struct dom_binding *ypdb) in ypmatch_cache_expire() argument
143 struct ypmatch_ent *c = ypdb->cache; in ypmatch_cache_expire()
152 ypmatch_cache_delete(ypdb, p, c); in ypmatch_cache_expire()
164 ypmatch_cache_insert(struct dom_binding *ypdb, char *map, keydat *key, in ypmatch_cache_insert() argument
170 if (ypdb->ypmatch_cachecnt) in ypmatch_cache_insert()
171 ypmatch_cache_expire(ypdb); in ypmatch_cache_insert()
177 if (ypdb->ypmatch_cachecnt >= YPLIB_MAXCACHE) { in ypmatch_cache_insert()
178 struct ypmatch_ent *o = NULL, *c = ypdb->cache; in ypmatch_cache_insert()
194 ypmatch_cache_expire(ypdb); in ypmatch_cache_insert()
226 new->ypc_next = ypdb->cache; in ypmatch_cache_insert()
227 ypdb->cache = new; in ypmatch_cache_insert()
229 ypdb->ypmatch_cachecnt++; in ypmatch_cache_insert()
235 ypmatch_cache_lookup(struct dom_binding *ypdb, char *map, keydat *key, in ypmatch_cache_lookup() argument
240 ypmatch_cache_expire(ypdb); in ypmatch_cache_lookup()
242 for (c = ypdb->cache; c != NULL; c = c->ypc_next) { in ypmatch_cache_lookup()
281 _yp_dobind(char *dom, struct dom_binding **ypdb) in _yp_dobind() argument
315 if (ypdb != NULL) in _yp_dobind()
316 *ypdb = NULL; in _yp_dobind()
562 if (ypdb != NULL) in _yp_dobind()
563 *ypdb = ysd; in _yp_dobind()