drivers/pci/endpoint/functions/pci-epf-ntb.c
Source file repositories/reference/linux-study-clean/drivers/pci/endpoint/functions/pci-epf-ntb.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pci/endpoint/functions/pci-epf-ntb.c- Extension
.c- Size
- 73251 bytes
- Lines
- 2103
- 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.
- Part of the selected hardware vertical slice: PCI discovery, driver binding, NVMe queues, block requests, DMA, interrupts, and completion.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/delay.hlinux/io.hlinux/module.hlinux/slab.hlinux/pci-epc.hlinux/pci-epf.h
Detected Declarations
struct epf_ntbstruct epf_ntb_epcstruct epf_ntb_ctrlenum epf_ntb_barfunction epf_ntb_link_upfunction epf_ntb_configure_mwfunction epf_ntb_teardown_mwfunction epf_ntb_configure_msifunction epf_ntb_configure_msixfunction epf_ntb_configure_dbfunction epf_ntb_teardown_dbfunction epf_ntb_cmd_handlerfunction epf_ntb_peer_spad_bar_clearfunction epf_ntb_peer_spad_bar_setfunction epf_ntb_config_sspad_bar_clearfunction epf_ntb_config_sspad_bar_setfunction epf_ntb_config_spad_bar_freefunction epf_ntb_config_spad_bar_allocfunction epf_ntb_config_spad_bar_alloc_interfacefunction epf_ntb_free_peer_memfunction epf_ntb_db_mw_bar_clearfunction epf_ntb_db_mw_bar_cleanupfunction epf_ntb_configure_interruptfunction epf_ntb_alloc_peer_memfunction epf_ntb_db_mw_bar_initfunction epf_ntb_epc_create_interfacefunction epf_ntb_epc_createfunction epf_ntb_init_epc_bar_interfacefunction epf_ntb_init_epc_barfunction epf_ntb_epc_init_interfacefunction epf_ntb_epc_cleanup_interfacefunction epf_ntb_epc_cleanupfunction epf_ntb_epc_initfunction epf_ntb_bindfunction epf_ntb_unbindfunction epf_ntb_num_mws_storefunction epf_ntb_add_cfsfunction epf_ntb_probefunction epf_ntb_initfunction epf_ntb_exitmodule init epf_ntb_init
Annotated Snippet
module_init(epf_ntb_init);
static void __exit epf_ntb_exit(void)
{
pci_epf_unregister_driver(&epf_ntb_driver);
destroy_workqueue(kpcintb_workqueue);
}
module_exit(epf_ntb_exit);
MODULE_DESCRIPTION("PCI EPF NTB DRIVER");
MODULE_AUTHOR("Kishon Vijay Abraham I <kishon@ti.com>");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/delay.h`, `linux/io.h`, `linux/module.h`, `linux/slab.h`, `linux/pci-epc.h`, `linux/pci-epf.h`.
- Detected declarations: `struct epf_ntb`, `struct epf_ntb_epc`, `struct epf_ntb_ctrl`, `enum epf_ntb_bar`, `function epf_ntb_link_up`, `function epf_ntb_configure_mw`, `function epf_ntb_teardown_mw`, `function epf_ntb_configure_msi`, `function epf_ntb_configure_msix`, `function epf_ntb_configure_db`.
- Atlas domain: Representative Device Path / PCIe NVMe Storage Path.
- Implementation status: integration implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.