slot->dev = pci_find_slot(slot->bus->number, slot->devfn); 
slot->dev = pci_get_slot(slot->bus, slot->devfn); 
int cpci_configure_slot(struct slot* slot){	unsigned char busnr;	struct pci_bus *child;	dbg("%s - enter", __FUNCTION__);	if(slot->dev == NULL) {		dbg("pci_dev null, finding %02x:%02x:%x",		    slot->bus->number, PCI_SLOT(slot->devfn), PCI_FUNC(slot->devfn));		slot->dev = pci_find_slot(slot->bus->number, slot->devfn);	}	/* Still NULL? Well then scan for it! */	if(slot->dev == NULL) {		int n;		dbg("pci_dev still null");		/*		 * This will generate pci_dev structures for all functions, but		 * we will only call this case when lookup fails.		 */		n = pci_scan_slot(slot->bus, slot->devfn);		dbg("%s: pci_scan_slot returned %d", __FUNCTION__, n);		if(n > 0)			pci_bus_add_devices(slot->bus);		slot->dev = pci_find_slot(slot->bus->number, slot->devfn);		if(slot->dev == NULL) {			err("Could not find PCI device for slot %02x", slot->number);			return 1;		}	}	if (slot->dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) {		pci_read_config_byte(slot->dev, PCI_SECONDARY_BUS, &busnr);		child = pci_add_new_bus(slot->dev->bus, slot->dev, busnr);		pci_do_scan_bus(child);		pci_bus_size_bridges(child);	}	pci_bus_assign_resources(slot->dev->bus);	cpci_enable_device(slot->dev);	dbg("%s - exit", __FUNCTION__);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/bcc488ab02254a6e60d749187a632dc3d642d4f8/cpci_hotplug_pci.c/clean/drivers/pci/hotplug/cpci_hotplug_pci.c