struct slot *slot = (struct slot *)bss_hotplug_slot->private; 
struct slot *slot = bss_hotplug_slot->private; 
static int disable_slot(struct hotplug_slot *bss_hotplug_slot){	struct slot *slot = (struct slot *)bss_hotplug_slot->private;	struct pci_dev *dev;	int func;	int rc;	/* Acquire update access to the bus */	down(&sn_hotplug_sem);	/* is it okay to bring this slot down? */	rc = sn_slot_disable(bss_hotplug_slot, slot->device_num,			     PCI_REQ_SLOT_ELIGIBLE);	if (rc)		goto leaving;	/* Free the SN resources assigned to the Linux device.*/	for (func = 0; func < 8;  func++) {		dev = pci_get_slot(slot->pci_bus,				   PCI_DEVFN(slot->device_num+1,				   	     PCI_FUNC(func)));		if (dev) {			/*			 * Some drivers may use dma accesses during the			 * driver remove function. We release the sysdata			 * areas after the driver remove functions have			 * been called.			 */			sn_bus_store_sysdata(dev);			sn_bus_free_data(dev);			pci_remove_bus_device(dev);			pci_dev_put(dev);		}	}	/* free the collected sysdata pointers */	sn_bus_free_sysdata();	/* Deactivate slot */	rc = sn_slot_disable(bss_hotplug_slot, slot->device_num,			     PCI_REQ_SLOT_DISABLE); leaving:	/* Release the bus lock */	up(&sn_hotplug_sem);	return rc;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/1d2450a4a6eb656798c6282b5ffc8e5f9f52ac14/sgi_hotplug.c/clean/drivers/pci/hotplug/sgi_hotplug.c