drivers/pci/hotplug/shpchp_core.c

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

File Facts

System
Linux kernel
Corpus path
drivers/pci/hotplug/shpchp_core.c
Extension
.c
Size
8215 bytes
Lines
335
Domain
Representative Device Path
Bucket
PCIe NVMe Storage Path
Inferred role
Representative Device Path: operation-table or driver-model contract
Status
pattern 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

static struct pci_driver shpc_driver = {
	.name =		SHPC_MODULE_NAME,
	.id_table =	shpcd_pci_tbl,
	.probe =	shpc_probe,
	.remove =	shpc_remove,
};

static int __init shpcd_init(void)
{
	return pci_register_driver(&shpc_driver);
}

static void __exit shpcd_cleanup(void)
{
	pci_unregister_driver(&shpc_driver);
}

module_init(shpcd_init);
module_exit(shpcd_cleanup);

Annotation

Implementation Notes