From nobody Wed Dec 28 01:41:21 2022 X-Original-To: freebsd-hackers@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 4NhZ4P0Wznz2cGQD for ; Wed, 28 Dec 2022 01:41:25 +0000 (UTC) (envelope-from yuri@aetern.org) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4NhZ4N5Xt1z3Mck for ; Wed, 28 Dec 2022 01:41:24 +0000 (UTC) (envelope-from yuri@aetern.org) Authentication-Results: mx1.freebsd.org; none Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 283435C00A0; Tue, 27 Dec 2022 20:41:24 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 27 Dec 2022 20:41:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aetern.org; h=cc :content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1672191684; x= 1672278084; bh=shUuKMz/X0eP7VzDEHt2apAibkoR3Uvgx5RKyHsspWo=; b=E la13Q5SXtWsHsIviTY3/Gqdda1IJ+E/XmXiq65aMeZV+00AVvqHRWxcYFYI2hmzg dL3QYEHTg9jelbUOuu7BvHXEC1NuiDYeBc802LN18PW3WPPz6VzNGu/I6fb56OVf PKIzhyMjxUVIKpjdu5YoLYWwgYN38fdCjD0Xi5jSnHl350bN5Yiamaoebr1WbCqp 7yyM9Y4ihGzx+eEEcfvuG3vEHs0RAWiycsrvmxEqYeueJWfY/o+65YAO23wxEaJQ ePqNjm+rmXncw/NTEdfQtgKn2c7xebvR6SKG9+yYRKp3wzZntaDJrKvvf8JbjQQb b6711SzDI9cY1QE+eBDgg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1672191684; x=1672278084; bh=s hUuKMz/X0eP7VzDEHt2apAibkoR3Uvgx5RKyHsspWo=; b=OnjFRm2oehtpj/ID1 J1mZigMEQFQQ/tdCzF3O1AatIEWn/6Ftqs6rcRs6y29nIPpeR5Z2eh5TNjYuOkdx qYvZOzoLbKtvSJ/5s6oX9aTwXXONHXF17AqB3ohYT41d6AXP/XcMS4k6Ypz1oJEh B3+pqkzgvg3/qfuMdbBWjtW3kopLYQS1fhiejuYSBAAeXy4wAqQWf2pBvID//z9g n9fVLWzciUcvoM5oNOgnsmDw/3AACgHYH92e2QJ6o3exOi/snGghzPRRMsuo8563 IQ6RXHTp+INbX85U1x3Tbm5zZnn8GHGxQWPmPGTQ570QinuSCX4kcz6+Czki4D5y lSUjw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedriedugdeflecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpegjuhhrihcu oeihuhhrihesrggvthgvrhhnrdhorhhgqeenucggtffrrghtthgvrhhnpeevvdegledtve ekudfhjeeggeffteehueejlefhkeegffetheevveejfefhgffftdenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeihuhhrihesrggvthgvrhhnrd horhhg X-ME-Proxy: Feedback-ID: i0d79475b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 27 Dec 2022 20:41:23 -0500 (EST) Message-ID: <0988689f-4434-f9f3-42c3-9f9622d31022@aetern.org> Date: Wed, 28 Dec 2022 02:41:21 +0100 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: How do I find whatever combination of things end up defining pcib_get_bus(. . .)? To: Mark Millard , FreeBSD Hackers References: <5D802E64-9B2D-4ECB-9889-18C17ED4F788.ref@yahoo.com> <5D802E64-9B2D-4ECB-9889-18C17ED4F788@yahoo.com> Content-Language: en-US From: Yuri In-Reply-To: <5D802E64-9B2D-4ECB-9889-18C17ED4F788@yahoo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4NhZ4N5Xt1z3Mck X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N Mark Millard wrote: > # grep -r "\" /usr/13S-src/ | more > /usr/13S-src/sys/mips/nlm/xlp_pci.c: busno = pcib_get_bus(dev); > /usr/13S-src/sys/powerpc/ofw/ofw_pcibus.c: busno = pcib_get_bus(dev); > /usr/13S-src/sys/dev/pci/pci.c: busno = pcib_get_bus(dev); > /usr/13S-src/sys/dev/pci/pci.c: busno = pcib_get_bus(dev); > /usr/13S-src/sys/dev/pci/pci.c: busno = pcib_get_bus(dev); > /usr/13S-src/sys/dev/cardbus/cardbus.c: pcib_get_bus(cbdev), pcib_get_bus(cbdev), 1, 0); > /usr/13S-src/sys/dev/cardbus/cardbus.c: bus = pcib_get_bus(cbdev); > /usr/13S-src/sys/dev/hyperv/pcib/vmbus_pcib.c: busno = pcib_get_bus(dev); > /usr/13S-src/sys/dev/pccbb/pccbb.c: b = pcib_get_bus(child); > /usr/13S-src/sys/dev/pccbb/pccbb_pci.c: sc->pribus = pcib_get_bus(parent); > /usr/13S-src/sys/x86/pci/qpi.c: *result = pcib_get_bus(dev); > /usr/13S-src/sys/x86/pci/pci_bus.c: bus = pcib_get_bus(dev); > /usr/13S-src/sys/x86/iommu/intel_drv.c: *busno = pcib_get_bus(bus); > > Everything found is a use, not a definition. (I also tried: > # grep -r "\" /usr/obj/BUILDs/13S-CA72-nodbg-clang/ .) > > Historically I've managed to eventually track down definitions > are are less direct, such as ones that are formed via macros > that put together names. But, so far, I've not managed to for > pcib_get_bus . > > So, hopefully, someone can point me to what I've missed. See __BUS_ACCESSOR() macro in sys/bus.h (I had to have a bit of fun with `cc -E` to get at it).