563 sdev_state_timeout(void *arg)
564 {
565 sdev_state_boot_complete();
566 }
567
568 static void
569 sdev_state_sysavail()
570 {
571 sdev_nc_list_t *ncl = sdev_ncache;
572 clock_t nticks;
573 int nsecs;
574
575 mutex_enter(&ncl->ncl_mutex);
576 ncl->ncl_flags |= NCL_LIST_WENABLE;
577 mutex_exit(&ncl->ncl_mutex);
578
579 nsecs = sdev_reconfig_delay;
580 if (nsecs == 0) {
581 sdev_state_boot_complete();
582 } else {
583 nticks = drv_usectohz(1000000 * nsecs);
584 sdcmn_err5(("timeout initiated %ld\n", nticks));
585 (void) timeout(sdev_state_timeout, NULL, nticks);
586 sdev_nc_flush_boot_update();
587 }
588 }
589
590 /*
591 * Called to inform the filesystem of progress during boot,
592 * either a notice of reconfiguration boot or an indication of
593 * system boot complete. At system boot complete, set up a
594 * timer at the expiration of which no further failed lookups
595 * will be added to the negative cache.
596 *
597 * The dev filesystem infers from reconfig boot that implicit
598 * reconfig need not be invoked at all as all available devices
599 * will have already been named.
600 *
601 * The dev filesystem infers from "system available" that devfsadmd
602 * can now be run and hence implicit reconfiguration may be initiated.
603 * During early stages of system startup, implicit reconfig is
|
563 sdev_state_timeout(void *arg)
564 {
565 sdev_state_boot_complete();
566 }
567
568 static void
569 sdev_state_sysavail()
570 {
571 sdev_nc_list_t *ncl = sdev_ncache;
572 clock_t nticks;
573 int nsecs;
574
575 mutex_enter(&ncl->ncl_mutex);
576 ncl->ncl_flags |= NCL_LIST_WENABLE;
577 mutex_exit(&ncl->ncl_mutex);
578
579 nsecs = sdev_reconfig_delay;
580 if (nsecs == 0) {
581 sdev_state_boot_complete();
582 } else {
583 nticks = drv_sectohz(nsecs);
584 sdcmn_err5(("timeout initiated %ld\n", nticks));
585 (void) timeout(sdev_state_timeout, NULL, nticks);
586 sdev_nc_flush_boot_update();
587 }
588 }
589
590 /*
591 * Called to inform the filesystem of progress during boot,
592 * either a notice of reconfiguration boot or an indication of
593 * system boot complete. At system boot complete, set up a
594 * timer at the expiration of which no further failed lookups
595 * will be added to the negative cache.
596 *
597 * The dev filesystem infers from reconfig boot that implicit
598 * reconfig need not be invoked at all as all available devices
599 * will have already been named.
600 *
601 * The dev filesystem infers from "system available" that devfsadmd
602 * can now be run and hence implicit reconfiguration may be initiated.
603 * During early stages of system startup, implicit reconfig is
|