• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/fs/autofs/

Lines Matching defs:ar

276 	struct autofs_request *ar;
278 ar = context;
282 ar->ar_id, ar->ar_path, autofs_timeout);
286 ar->ar_error = ETIMEDOUT;
287 ar->ar_wildcards = true;
288 ar->ar_done = true;
289 ar->ar_in_progress = false;
390 struct autofs_request *ar;
410 TAILQ_FOREACH(ar, &autofs_softc->sc_requests, ar_next) {
411 if (strcmp(ar->ar_path, path) != 0)
413 if (strcmp(ar->ar_key, key) != 0)
416 KASSERT(strcmp(ar->ar_from, amp->am_from) == 0,
417 ("from changed; %s != %s", ar->ar_from, amp->am_from));
418 KASSERT(strcmp(ar->ar_prefix, amp->am_prefix) == 0,
420 ar->ar_prefix, amp->am_prefix));
421 KASSERT(strcmp(ar->ar_options, amp->am_options) == 0,
423 ar->ar_options, amp->am_options));
428 if (ar != NULL) {
429 refcount_acquire(&ar->ar_refcount);
431 ar = uma_zalloc(autofs_request_zone, M_WAITOK | M_ZERO);
432 ar->ar_mount = amp;
434 ar->ar_id =
436 strlcpy(ar->ar_from, amp->am_from, sizeof(ar->ar_from));
437 strlcpy(ar->ar_path, path, sizeof(ar->ar_path));
438 strlcpy(ar->ar_prefix, amp->am_prefix, sizeof(ar->ar_prefix));
439 strlcpy(ar->ar_key, key, sizeof(ar->ar_key));
440 strlcpy(ar->ar_options,
441 amp->am_options, sizeof(ar->ar_options));
443 TIMEOUT_TASK_INIT(taskqueue_thread, &ar->ar_task, 0,
444 autofs_task, ar);
445 taskqueue_enqueue_timeout(taskqueue_thread, &ar->ar_task,
447 refcount_init(&ar->ar_refcount, 1);
448 TAILQ_INSERT_TAIL(&autofs_softc->sc_requests, ar, ar_next);
452 while (ar->ar_done == false) {
460 "with error %d", ar->ar_path, error);
468 request_error = ar->ar_error;
471 "pid %d (%s)", ar->ar_path, request_error,
475 wildcards = ar->ar_wildcards;
477 last = refcount_release(&ar->ar_refcount);
479 TAILQ_REMOVE(&autofs_softc->sc_requests, ar, ar_next);
484 taskqueue_cancel_timeout(taskqueue_thread, &ar->ar_task, NULL);
485 taskqueue_drain_timeout(taskqueue_thread, &ar->ar_task);
486 uma_zfree(autofs_request_zone, ar);
550 struct autofs_request *ar;
555 TAILQ_FOREACH(ar, &autofs_softc->sc_requests, ar_next) {
556 if (ar->ar_done)
558 if (ar->ar_in_progress)
564 if (ar != NULL)
575 ar->ar_in_progress = true;
578 adr->adr_id = ar->ar_id;
579 strlcpy(adr->adr_from, ar->ar_from, sizeof(adr->adr_from));
580 strlcpy(adr->adr_path, ar->ar_path, sizeof(adr->adr_path));
581 strlcpy(adr->adr_prefix, ar->ar_prefix, sizeof(adr->adr_prefix));
582 strlcpy(adr->adr_key, ar->ar_key, sizeof(adr->adr_key));
583 strlcpy(adr->adr_options, ar->ar_options, sizeof(adr->adr_options));
595 struct autofs_request *ar;
598 TAILQ_FOREACH(ar, &autofs_softc->sc_requests, ar_next) {
599 if (ar->ar_id == add->add_id)
603 if (ar == NULL) {
609 ar->ar_error = add->add_error;
610 ar->ar_wildcards = true;
611 ar->ar_done = true;
612 ar->ar_in_progress = false;
623 struct autofs_request *ar;
626 TAILQ_FOREACH(ar, &autofs_softc->sc_requests, ar_next) {
627 if (ar->ar_id == add->add_id)
631 if (ar == NULL) {
637 ar->ar_error = add->add_error;
638 ar->ar_wildcards = add->add_wildcards;
639 ar->ar_done = true;
640 ar->ar_in_progress = false;