Date: Wed, 28 Dec 2022 02:41:21 +0100 From: Yuri <yuri@aetern.org> To: Mark Millard <marklmi@yahoo.com>, FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: How do I find whatever combination of things end up defining pcib_get_bus(. . .)? Message-ID: <0988689f-4434-f9f3-42c3-9f9622d31022@aetern.org> In-Reply-To: <5D802E64-9B2D-4ECB-9889-18C17ED4F788@yahoo.com> References: <5D802E64-9B2D-4ECB-9889-18C17ED4F788.ref@yahoo.com> <5D802E64-9B2D-4ECB-9889-18C17ED4F788@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Mark Millard wrote: > # grep -r "\<pcib_get_bus\>" /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 "\<pcib_get_bus\>" /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).
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0988689f-4434-f9f3-42c3-9f9622d31022>