Lines Matching defs:anp
244 autofs_path(struct autofs_node *anp)
249 amp = anp->an_mount;
252 for (; anp->an_parent != NULL; anp = anp->an_parent) {
253 tmp = malloc(strlen(anp->an_name) + strlen(path) + 2,
255 strcpy(tmp, anp->an_name);
295 autofs_cached(struct autofs_node *anp, const char *component, int componentlen)
300 amp = anp->an_mount;
311 if (anp->an_parent == NULL && componentlen != 0 && anp->an_wildcards) {
313 error = autofs_node_find(anp, component, componentlen, NULL);
319 return (anp->an_cached);
325 struct autofs_node *anp;
327 anp = context;
328 anp->an_cached = false;
384 autofs_trigger_one(struct autofs_node *anp,
395 amp = anp->an_mount;
399 if (anp->an_parent == NULL) {
402 for (firstanp = anp; firstanp->an_parent->an_parent != NULL;
408 path = autofs_path(anp);
499 anp->an_cached = true;
500 anp->an_wildcards = wildcards;
501 callout_reset(&anp->an_callout, autofs_cache * hz,
502 autofs_cache_callout, anp);
517 autofs_trigger(struct autofs_node *anp,
523 error = autofs_trigger_one(anp, component, componentlen);
525 anp->an_retries = 0;
531 anp->an_retries = 0;
534 anp->an_retries++;
535 if (anp->an_retries >= autofs_retry_attempts) {
537 "error %d", anp->an_retries, error);
538 anp->an_retries = 0;
544 autofs_retry_attempts - anp->an_retries);