Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Nov 2010 22:25:44 +0000 (UTC)
From:      "Justin T. Gibbs" <gibbs@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/kern subr_autoconf.c
Message-ID:  <201011302226.oAUMQ2NN019856@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
gibbs       2010-11-30 22:25:44 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_8)
    sys/kern             subr_autoconf.c 
  Log:
  SVN rev 216087 on 2010-11-30 22:25:44Z by gibbs
  
  Merge revision 211236 form current:
  
  Allow interrupt driven config hooks to be registered from config hook callbacks.
  
  Interrupt driven configuration hooks serve two purposes: they are a
  mechanism for registering for a callback that is invoked once interrupt
  services are available, and they hold off root device selection so long
  as any configuration hooks are still active.  Before this change, it was
  not possible to safely register additional hooks from the context of a
  configuration hook callback.  The need for this feature arises when
  interrupts are required to discover new devices (e.g. access to the XenStore
  to find para-virtualized devices) which in turn also require the ability
  to hold off root device selection until some lengthy, interrupt driven,
  configuration task has completed (e.g. Xen front/back device driver
  negotiation).
  
  More specifically, the mutex protecting the list of active configuration
  hooks is never held during a callback, and static information is used
  to ensure proper ordering and only a single callback to each hook even
  when faced with registration or removal of a hook during an active run.
  
  Sponsored by:   Spectra Logic Corporation
  Approved by:    re (kib)
  
  Revision  Changes    Path
  1.29.2.2  +45 -8     src/sys/kern/subr_autoconf.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011302226.oAUMQ2NN019856>