From owner-svn-src-all@freebsd.org Sun Aug 13 19:04:33 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A646CDD3388; Sun, 13 Aug 2017 19:04:33 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-pg0-f44.google.com (mail-pg0-f44.google.com [74.125.83.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 809B97F0B7; Sun, 13 Aug 2017 19:04:33 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-pg0-f44.google.com with SMTP id y129so33532333pgy.4; Sun, 13 Aug 2017 12:04:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=RcGgfN2ErSQVy6KaobyyUGUfOhvrH32rLGA6TVX4Bxc=; b=fLXFX/nyRGK2U3Z/heBy5PAo66AR8lXQk4Qn/Do8ZnlQTJHJlsmOnaxlB01Pjau51G uqcF2JECV2mp6g+k3qOwgSs1FXXtV3ICYNaWGU3uWB+FABJd5R/4UphTndtPMlDJerhO sgGkIOQRSIfmUTSwhinanaZ6D/F1HDt028fXxiiqxFaZ6W4GczGWqpxfEjKWBsxNtMYL LOpgGGFqPIYVBeLFQ0Y6Ngr2WBDtqdyU2qUuD2WlilffYbZKvDTBdGwYm0EUsDV7Sza6 y40q09lbyEqXpm+XpPCWV0CZWWhu++5HWiGZcvf0l0/xImH2AuOWRDMFyClrZ1efsmPs Vr2Q== X-Gm-Message-State: AHYfb5jfIPosf4Fe3H9Znl2nGxT4GmSdX0NLlpfz7ZEZkmRHb1d17TjB guJ4cAew8z6EiHo+iYA= X-Received: by 10.84.254.9 with SMTP id b9mr23510160plm.422.1502649678668; Sun, 13 Aug 2017 11:41:18 -0700 (PDT) Received: from mail-pg0-f48.google.com (mail-pg0-f48.google.com. [74.125.83.48]) by smtp.gmail.com with ESMTPSA id 206sm10054991pfc.61.2017.08.13.11.41.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Aug 2017 11:41:18 -0700 (PDT) Received: by mail-pg0-f48.google.com with SMTP id l64so33244358pge.5; Sun, 13 Aug 2017 11:41:18 -0700 (PDT) X-Received: by 10.101.90.7 with SMTP id y7mr21248036pgs.29.1502649678383; Sun, 13 Aug 2017 11:41:18 -0700 (PDT) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 10.100.150.15 with HTTP; Sun, 13 Aug 2017 11:41:17 -0700 (PDT) In-Reply-To: <201708131810.v7DIAOYi094566@repo.freebsd.org> References: <201708131810.v7DIAOYi094566@repo.freebsd.org> From: Conrad Meyer Date: Sun, 13 Aug 2017 11:41:17 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r322465 - in head: share/man/man9 sys/kern sys/sys To: Ian Lepore Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Aug 2017 19:04:33 -0000 On Sun, Aug 13, 2017 at 11:10 AM, Ian Lepore wrote: > Author: ian > Date: Sun Aug 13 18:10:24 2017 > New Revision: 322465 > URL: https://svnweb.freebsd.org/changeset/base/322465 > > Log: > Add config_intrhook_oneshot(): schedule an intrhook function and unregister > it automatically after it runs. > > The config_intrhook mechanism allows a driver to stall the boot process > until device(s) required for booting are available, by not allowing system > inits to proceed until all intrhook functions have been unregistered. > Virtually all existing code simply unregisters from within the hook function > when it gets called. > > This new function makes that common usage more convenient. Instead of > allocating and filling in a struct, passing it to a function that might (in > theory) fail, and checking the return code, now a driver can simply call > this cannot-fail routine, passing just the intrhook function and its arg. > > Differential Revision: https://reviews.freebsd.org/D11963 Reviewed by: cem, bcr (manpages)