Re: [PATCH v3, part2 01/20] PCI: introduce hotplug-safe PCI bus iterators

2013-06-25 Thread Bjorn Helgaas
On Thu, Jun 20, 2013 at 10:18 AM, Jiang Liu wrote: > On 06/18/2013 04:06 AM, Bjorn Helgaas wrote: >> On Sun, May 26, 2013 at 11:52:58PM +0800, Jiang Liu wrote: >>> Introduce hotplug-safe PCI bus iterators as below, which hold a >>> reference on the returned PCI bus object. >>> bool pci_bus_exists(

Re: [PATCH v3, part2 01/20] PCI: introduce hotplug-safe PCI bus iterators

2013-06-20 Thread Jiang Liu
On 06/18/2013 04:06 AM, Bjorn Helgaas wrote: > On Sun, May 26, 2013 at 11:52:58PM +0800, Jiang Liu wrote: >> Introduce hotplug-safe PCI bus iterators as below, which hold a >> reference on the returned PCI bus object. >> bool pci_bus_exists(int domain, int busnr); >> struct pci_bus *pci_get_bus(int

Re: [PATCH v3, part2 01/20] PCI: introduce hotplug-safe PCI bus iterators

2013-06-18 Thread Jiang Liu
On 06/18/2013 04:06 AM, Bjorn Helgaas wrote: > On Sun, May 26, 2013 at 11:52:58PM +0800, Jiang Liu wrote: >> Introduce hotplug-safe PCI bus iterators as below, which hold a >> reference on the returned PCI bus object. >> bool pci_bus_exists(int domain, int busnr); >> struct pci_bus *pci_get_bus(int

Re: [PATCH v3, part2 01/20] PCI: introduce hotplug-safe PCI bus iterators

2013-06-17 Thread Bjorn Helgaas
On Sun, May 26, 2013 at 11:52:58PM +0800, Jiang Liu wrote: > Introduce hotplug-safe PCI bus iterators as below, which hold a > reference on the returned PCI bus object. > bool pci_bus_exists(int domain, int busnr); > struct pci_bus *pci_get_bus(int domain, int busnr); > struct pci_bus *pci_get_next

Re: [PATCH v3, part2 01/20] PCI: introduce hotplug-safe PCI bus iterators

2013-05-28 Thread Liu Jiang
On Tue 28 May 2013 12:22:29 PM CST, Yinghai Lu wrote: > On Sun, May 26, 2013 at 8:52 AM, Jiang Liu wrote: >> Introduce hotplug-safe PCI bus iterators as below, which hold a >> reference on the returned PCI bus object. >> bool pci_bus_exists(int domain, int busnr); >> struct pci_bus *pci_get_bus(in

Re: [PATCH v3, part2 01/20] PCI: introduce hotplug-safe PCI bus iterators

2013-05-27 Thread Yinghai Lu
On Sun, May 26, 2013 at 8:52 AM, Jiang Liu wrote: > Introduce hotplug-safe PCI bus iterators as below, which hold a > reference on the returned PCI bus object. > bool pci_bus_exists(int domain, int busnr); > struct pci_bus *pci_get_bus(int domain, int busnr); > struct pci_bus *pci_get_next_bus(str

[PATCH v3, part2 01/20] PCI: introduce hotplug-safe PCI bus iterators

2013-05-26 Thread Jiang Liu
Introduce hotplug-safe PCI bus iterators as below, which hold a reference on the returned PCI bus object. bool pci_bus_exists(int domain, int busnr); struct pci_bus *pci_get_bus(int domain, int busnr); struct pci_bus *pci_get_next_bus(struct pci_bus *from); struct pci_bus *pci_get_next_root_bus(str