|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 2/2] pci: add check for pcie root ports and downstream ports |
Date: | Tue, 19 Aug 2014 17:09:22 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 |
Il 19/08/2014 16:37, Marcel Apfelbaum ha scritto: >> > +static int pci_check_pcie_port(PCIBus *bus, PCIDevice *dev) >> > +{ >> > + Object *obj = OBJECT(bus); >> > + >> > + if (!strcmp(object_get_typename(obj), TYPE_PCIE_BUS)) { > Maybe there is another way to check that this is a PCIe bus? > It's object_dynamic_cast. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |