From nobody Wed Jan 03 22:02:42 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T53cL37DDz56nZS; Wed, 3 Jan 2024 22:02:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T53cL2Xn8z4YGq; Wed, 3 Jan 2024 22:02:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704319362; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zHxoXZDTqFpa766I39bp86Ymr9s0cB1yZ7QaeSOdouM=; b=t0ZBgQy6rDSZ2A+dmYh6QsjshPlkEjoWf7KJIM1qYNuTarAmDRuj/j+TQ1ZOrLepiBzNLE BcVtO3MyIuxZmLJkClY9A+tVV3K6sXI9EjFUGicE6sYF7FdzVqiRd02Om2tsaWRw9pckv3 NWrASA02Nova5TyrhohAA3DYFx9qzrzp7xOAHb+WJKDHwLR4pTxKb4Av5pp2FQsVM+GlS3 eiK2vxuVZ+NFLUHhJF4YFCsigX0rAGzi+s+IN5zNeA1fAf/ExI6o60V6x/EEQtFNPmMZwW NJEP1EO+8n8U2vBj6tet83thRGSzL4UWKVAiDPAzXDtco36voHBG1HreHAX4jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704319362; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zHxoXZDTqFpa766I39bp86Ymr9s0cB1yZ7QaeSOdouM=; b=enTyZyGWzDvyUwYaPolt4eWrvIY9JuzsnBvpcozecOTphDtNQtgciGDdzau8tObwC5aSJ5 sWTeGrY6hV7n4xAM1PZ5sBHbwl9Z+cRtNooJ+ypxgJuV+vQvS4g3d2iWoc469ioDvmYbGu O3z/FqJiFWk3rA7CB9AqVr55KA6Y9RnjqNxIFtNyret9HFDdMHM1tc0rp+3aEfseot6kQJ EeU2uF1Ty8Shy8At1T62wcG1OLCWH4oztPR+EL4ZH1g5giwLLnHQxm+tkPuRj3GC0mzRyR +FIeNwt1U+5gDWTDRJ4R7GEBlFKM6kU6px7qtBZ1EEQ43bRN/F4Gq7LwHB2rng== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704319362; a=rsa-sha256; cv=none; b=OCGJFvnxkKSXCEzMuP5ni4fV464cCeRucktbHeh+FW+wTS9plBD0AsZ7J9His+iUnwQUDW JyQFdOGyFgxuaKBIzE43qLSdhDUw3z6GTikSOfvvTMhoA4pcyRwty/6IsCG5Bh/wRYp58c RnH62QEG9wajsNXWM0tEOZRVgalxJvppV9p4Y2a60SVa2d++k1MqoPm2VdNDXvK2fYbsNS WEs6RKEH5A9FxSvrzxUaSB/9FwiX21z7IDy/gBLC0LJLHMYiCRV2ZeCxuA8VurUiP9g0KA BxkjeGhpJQx+8LA3iDuAZa+1erSQRCscXkbt6OhOUtnukURjWyn4gNYbCQqkBQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4T53cL1ZVDz136y; Wed, 3 Jan 2024 22:02:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 403M2g3j072477; Wed, 3 Jan 2024 22:02:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 403M2gSG072474; Wed, 3 Jan 2024 22:02:42 GMT (envelope-from git) Date: Wed, 3 Jan 2024 22:02:42 GMT Message-Id: <202401032202.403M2gSG072474@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: a6d562d415c2 - stable/14 - new-bus: Add a comment for bus_generic_get_domain List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: a6d562d415c2f2bb26931d0cf79af2ca770be0da Auto-Submitted: auto-generated The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=a6d562d415c2f2bb26931d0cf79af2ca770be0da commit a6d562d415c2f2bb26931d0cf79af2ca770be0da Author: John Baldwin AuthorDate: 2023-11-24 18:33:57 +0000 Commit: John Baldwin CommitDate: 2024-01-03 20:47:02 +0000 new-bus: Add a comment for bus_generic_get_domain (cherry picked from commit 00b3cde596dd3945d56aa12f2a4957b2910e1ee3) --- sys/kern/subr_bus.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 1a73df25ff34..571e90b52dfc 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -4201,6 +4201,13 @@ bus_generic_child_present(device_t dev, device_t child) return (BUS_CHILD_PRESENT(device_get_parent(dev), dev)); } +/** + * @brief Helper function for implementing BUS_GET_DOMAIN(). + * + * This simple implementation of BUS_GET_DOMAIN() calls the + * BUS_GET_DOMAIN() method of the parent of @p dev. If @p dev + * does not have a parent, the function fails with ENOENT. + */ int bus_generic_get_domain(device_t dev, device_t child, int *domain) {