cregit-Linux how code gets into the kernel

Release 4.7 drivers/pci/hotplug-pci.c

Directory: drivers/pci
/* Core PCI functionality used only by PCI hotplug */

#include <linux/pci.h>
#include <linux/export.h>
#include "pci.h"


int pci_hp_add_bridge(struct pci_dev *dev) { struct pci_bus *parent = dev->bus; int pass, busnr, start = parent->busn_res.start; int end = parent->busn_res.end; for (busnr = start; busnr <= end; busnr++) { if (!pci_find_bus(pci_domain_nr(parent), busnr)) break; } if (busnr-- > end) { printk(KERN_ERR "No bus number available for hot-added bridge %s\n", pci_name(dev)); return -1; } for (pass = 0; pass < 2; pass++) busnr = pci_scan_bridge(parent, dev, busnr, pass); if (!dev->subordinate) return -1; return 0; }

Contributors

PersonTokensPropCommitsCommitProp
yinghai luyinghai lu134100.00%1100.00%
Total134100.00%1100.00%

EXPORT_SYMBOL_GPL(pci_hp_add_bridge);

Overall Contributors

PersonTokensPropCommitsCommitProp
yinghai luyinghai lu13993.29%133.33%
sam ravnborgsam ravnborg74.70%133.33%
paul gortmakerpaul gortmaker32.01%133.33%
Total149100.00%3100.00%
Directory: drivers/pci
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}