From nobody Wed Dec 28 03:40:26 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 4Nhck40Mc7z2khy8 for ; Wed, 28 Dec 2022 03:40:44 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic303-23.consmr.mail.gq1.yahoo.com (sonic303-23.consmr.mail.gq1.yahoo.com [98.137.64.204]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 4Nhck34n13z3l0c for ; Wed, 28 Dec 2022 03:40:43 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1672198841; bh=fkJM0iZ/3f3GUQOGj/5OeSGgDrcBJ3PVIH9tE6WIkr4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=XVbukm8FzH9uD/LDE+xlcHE1R2t5oIpYbZufJb0Ed4+6eFMYgSk5PdprmWl84Zq8w+Rl4nForIJNNsY8a+nZawi7lCkRD8MRQ3Fc/BehyOprtbdS3RRJdWJNdwDE2pKeMDgLSpea2opCMkwwC7hcSGjWnWJlz+UJb4G9bdD5AZl1NiO7M34enk1Tpp6wlLI8824CdhtHMlfM8DEjI2THwoNAqVZbD449t3X8uBxDb1nW0siipFIb+w2mbMEqux2Bt/XRnALEbXDfq2gF3rkzxhztEg2rd6NOu4YBrH3BgSzqY9QoFq2F2OvQH3uaET+ms7Tv1n0Pvi+mv/1Sk5LQtA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1672198841; bh=dRozLEZ66MZYr4QsOPph8bS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ssQdUtsGWjMdKl6_QrYq_1KIYArRMqyuS4MV_RLGOI8q5rKNV5Omy0y1NOyUVcIgLQiVMYPkZJoS DRW4oyvdOJrPKcZrQtERb5NFpdu4CqI9tOKmUbBMynsAgaqli4g6XL10QBFh0VYasAB7U8g9bvBL W5tWZyjynthiiMkUBpjI9Wpz37Ux6Np_eRq.2qfv8VAJgrb9jVLra5p8LAnBh9YXJFGNrzfg2F5B HNRJubHoxHHc1EnGAKDa0yjLC5pEs7L0s_GM52CycYerL3r0iP7gCtkrEnEvs_8FxQuCOK.JWhA6 UcHbM2I3fidxAcr0JlgnbGIRNkKKrejr1biFdPGk74JyxS4QDruFUid.ud6NwR5RIngdA.lqL6xy 9HwWsV1Eix7wS7qaF0wUkhu6QCnO.sGrHGTCkOlBVLlhviF5r.yg7yd8X88CWAGosyksyUUHSR_R tsw1FFcaOkBUp.ueKN_YmfhtphWC9gxWeWkqi68zq4Zxn9OC2wK_XraxrRVngWyrao5DRYvQe9Ff IW54FEL0GLp9vJ08KKzhJJz9OqNi4pySxXJ.9TcIevGAbwOqm5rFJYZq_XjKO5jPoHvziXgN5bgx nCio- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Wed, 28 Dec 2022 03:40:41 +0000 Received: by hermes--production-ne1-7b69748c4d-tc4mm (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID e6a6331a28df4c962a5683a48593aed8; Wed, 28 Dec 2022 03:40:38 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Subject: Re: How do I find whatever combination of things end up defining pcib_get_bus(. . .)? From: Mark Millard In-Reply-To: <0988689f-4434-f9f3-42c3-9f9622d31022@aetern.org> Date: Tue, 27 Dec 2022 19:40:26 -0800 Cc: FreeBSD Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <7DE1B7B5-9A74-43DC-B3B3-89D91834501B@yahoo.com> References: <5D802E64-9B2D-4ECB-9889-18C17ED4F788.ref@yahoo.com> <5D802E64-9B2D-4ECB-9889-18C17ED4F788@yahoo.com> <0988689f-4434-f9f3-42c3-9f9622d31022@aetern.org> To: Yuri X-Mailer: Apple Mail (2.3731.300.101.1.3) X-Rspamd-Queue-Id: 4Nhck34n13z3l0c X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Dec 27, 2022, at 17:41, Yuri wrote: > Mark Millard wrote: >> # grep -r "\" /usr/13S-src/ | more >> /usr/13S-src/sys/mips/nlm/xlp_pci.c: busno =3D pcib_get_bus(dev); >> /usr/13S-src/sys/powerpc/ofw/ofw_pcibus.c: busno =3D = pcib_get_bus(dev); >> /usr/13S-src/sys/dev/pci/pci.c: busno =3D pcib_get_bus(dev); >> /usr/13S-src/sys/dev/pci/pci.c: busno =3D pcib_get_bus(dev); >> /usr/13S-src/sys/dev/pci/pci.c: busno =3D 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 =3D pcib_get_bus(cbdev); >> /usr/13S-src/sys/dev/hyperv/pcib/vmbus_pcib.c: busno =3D = pcib_get_bus(dev); >> /usr/13S-src/sys/dev/pccbb/pccbb.c: b =3D = pcib_get_bus(child); >> /usr/13S-src/sys/dev/pccbb/pccbb_pci.c: sc->pribus =3D = pcib_get_bus(parent); >> /usr/13S-src/sys/x86/pci/qpi.c: *result =3D = pcib_get_bus(dev); >> /usr/13S-src/sys/x86/pci/pci_bus.c: bus =3D pcib_get_bus(dev); >> /usr/13S-src/sys/x86/iommu/intel_drv.c: *busno =3D = pcib_get_bus(bus); >>=20 >> Everything found is a use, not a definition. (I also tried: >> # grep -r "\" /usr/obj/BUILDs/13S-CA72-nodbg-clang/ .) >>=20 >> 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 . >>=20 >> So, hopefully, someone can point me to what I've missed. >=20 > See __BUS_ACCESSOR() macro in sys/bus.h (I had to have a bit of fun = with > `cc -E` to get at it). Thanks. Looks like could have explored with just PCIB_ and found: /usr/13S-src/sys/dev/pci/pcivar.h:#define PCIB_ACCESSOR(var, ivar, = type) \ /usr/13S-src/sys/dev/pci/pcivar.h:PCIB_ACCESSOR(domain, DOMAIN, = uint32_t) /usr/13S-src/sys/dev/pci/pcivar.h:PCIB_ACCESSOR(bus, BUS, = uint32_t) /usr/13S-src/sys/dev/pci/pcivar.h:#undef PCIB_ACCESSOR and the #define line would have shown: #define PCIB_ACCESSOR(var, ivar, type) = \ __BUS_ACCESSOR(pcib, var, PCIB, ivar, type) But in everything I did I was explicit about "get" as part of the text I explored with. =3D=3D=3D Mark Millard marklmi at yahoo.com