drivers/pci/hotplug/rpaphp_slot.c

Source file repositories/reference/linux-study-clean/drivers/pci/hotplug/rpaphp_slot.c

File Facts

System
Linux kernel
Corpus path
drivers/pci/hotplug/rpaphp_slot.c
Extension
.c
Size
2687 bytes
Lines
118
Domain
Representative Device Path
Bucket
PCIe NVMe Storage Path
Inferred role
Representative Device Path: exported/initcall integration point
Status
integration implementation candidate

Why This File Exists

Part of the selected hardware vertical slice: PCI discovery, driver binding, NVMe queues, block requests, DMA, interrupts, and completion.

Dependency Surface

Detected Declarations

Annotated Snippet

if (my_index == slot->index) {
			slotno = PCI_SLOT(PCI_DN(child)->devfn);
			break;
		}
	}

	retval = pci_hp_register(php_slot, slot->bus, slotno, slot->name);
	if (retval) {
		err("pci_hp_register failed with error %d\n", retval);
		return retval;
	}

	/* add slot to our internal list */
	list_add(&slot->rpaphp_slot_list, &rpaphp_slot_head);
	info("Slot [%s] registered\n", slot->name);
	return 0;
}

Annotation

Implementation Notes