Lines Matching refs:amp
243 struct autofs_mount *amp; in autofs_path() local
246 amp = anp->an_mount; in autofs_path()
259 tmp = malloc(strlen(amp->am_mountpoint) + strlen(path) + 2, in autofs_path()
261 strcpy(tmp, amp->am_mountpoint); in autofs_path()
295 struct autofs_mount *amp; in autofs_cached() local
297 amp = anp->an_mount; in autofs_cached()
299 AUTOFS_ASSERT_UNLOCKED(amp); in autofs_cached()
309 AUTOFS_SLOCK(amp); in autofs_cached()
311 AUTOFS_SUNLOCK(amp); in autofs_cached()
329 autofs_flush(struct autofs_mount *amp) in autofs_flush() argument
336 amp->am_root->an_cached = false; in autofs_flush()
337 AUTOFS_DEBUG("%s flushed", amp->am_mountpoint); in autofs_flush()
385 struct autofs_mount *amp; in autofs_trigger_one() local
392 amp = anp->an_mount; in autofs_trigger_one()
413 KASSERT(strcmp(ar->ar_from, amp->am_from) == 0, in autofs_trigger_one()
414 ("from changed; %s != %s", ar->ar_from, amp->am_from)); in autofs_trigger_one()
415 KASSERT(strcmp(ar->ar_prefix, amp->am_prefix) == 0, in autofs_trigger_one()
417 ar->ar_prefix, amp->am_prefix)); in autofs_trigger_one()
418 KASSERT(strcmp(ar->ar_options, amp->am_options) == 0, in autofs_trigger_one()
420 ar->ar_options, amp->am_options)); in autofs_trigger_one()
429 ar->ar_mount = amp; in autofs_trigger_one()
433 strlcpy(ar->ar_from, amp->am_from, sizeof(ar->ar_from)); in autofs_trigger_one()
435 strlcpy(ar->ar_prefix, amp->am_prefix, sizeof(ar->ar_prefix)); in autofs_trigger_one()
438 amp->am_options, sizeof(ar->ar_options)); in autofs_trigger_one()