From nobody Fri Nov 24 18:34:58 2023 X-Original-To: dev-commits-src-main@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 4ScNv71nf0z52BQT; Fri, 24 Nov 2023 18:34:59 +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 4ScNv71BSwz3Gnt; Fri, 24 Nov 2023 18:34:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700850899; 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=4uvld2owC5ENFFuZkTW/p7jNvU80m24fifayOYLSmrU=; b=iHAHi1SRTR5NAahzFvf+6NatUsZqOX5PrueFuUBJ1SdCIVEWkuc5xf7Q+KENpPEzqpmUUv EL7ZosX11yuhP1DdnTJqEPBUBudrldL30HchLQJL/Og0xCNAw+GYkbA4Si38Q14gYJ0Hgh uCcqLjWw0A2lFd2soy5worLj3swJMNzPzz0ewV0tr6G3bW46j9pS/W/HmyDbYQCT7U2GVN K8OlYoTHOHdCOA/0PwsatSIKhUGZaO7aIL0fYKqgUi5RRcUbNl7ePJZZsQMPWhmPT5C8Ch bJHC9DNcdvOpyWCrgRfF0oaVFEsmO/nviikicCxX1C7bCC1zSh5mmWgy/LpUCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700850899; 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=4uvld2owC5ENFFuZkTW/p7jNvU80m24fifayOYLSmrU=; b=AS6MHq3W9hzXvJhbhflHgH9epwoKj+hMmQFwqzulSJKgLdXxSPT2F+3oOmaatBChxUuYdC pcT7N/tAVM1Vw+TytKGkJ6tx6m+kyVs1Qyugo1B0aFnASgdXpJXTdE4FuKTUcif7jqVS0H P7suNKbnYUGl9mLqXAar8vyxpRbH5DJSYYDHRC5E7xCvEvFVOgwLY4N9AhA7JK6m2meZdT tnB6rg8/cIMe7aNthjFqtCEB9Ax1Rrfouaroug7Q7vqYdsBXbBR+T9GedtLXzMS22aBIVD JO28cy01jjsusy4TnwiBvT9XvJ/pV0Vuji0bhCLW4CzGR7M9Sq+n4yjxkwTstA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700850899; a=rsa-sha256; cv=none; b=XdINPeexWqYvhGsp2pV1bqZkm6a32hc0u8794nJkav6dbh0r/8cOdGIvFx9qZ0+JK2ummK LPz2R+3Bpb5SS1nagf3rgfYtEB5LpL6ot+ljjM3lwfe26PDg76Mz3/Ka9+LPd5q4LVrGlZ 7v/IaFe/fLAEYfsos97Zu+Y1rcBznSsJ6nnM8ZkC/kgHUE3K1lTbbT7Y3Wc9GgzIDxTUz7 BfJVLfX4VA/SxeBrbN5PD9kZNWG7+nJc9hv/KV0vGcEMZOKbpdcG56V15+1qOieaMCclyE kjbxSphiuJ6JlMaFzPmtH70SIz/v7V6LQTs/EyrVWsPK2yoOZrR4uPxkBLktiA== 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 4ScNv70Fhszw3x; Fri, 24 Nov 2023 18:34:59 +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 3AOIYwJ6068829; Fri, 24 Nov 2023 18:34:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AOIYw0p068826; Fri, 24 Nov 2023 18:34:58 GMT (envelope-from git) Date: Fri, 24 Nov 2023 18:34:58 GMT Message-Id: <202311241834.3AOIYw0p068826@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 00b3cde596dd - main - new-bus: Add a comment for bus_generic_get_domain List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 00b3cde596dd3945d56aa12f2a4957b2910e1ee3 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=00b3cde596dd3945d56aa12f2a4957b2910e1ee3 commit 00b3cde596dd3945d56aa12f2a4957b2910e1ee3 Author: John Baldwin AuthorDate: 2023-11-24 18:33:57 +0000 Commit: John Baldwin CommitDate: 2023-11-24 18:33:57 +0000 new-bus: Add a comment for bus_generic_get_domain --- 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 9e191f4c3a4f..1c6710dbbb3c 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -4358,6 +4358,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) {