drivers/ntb/hw/epf/ntb_hw_epf.c
Source file repositories/reference/linux-study-clean/drivers/ntb/hw/epf/ntb_hw_epf.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/ntb/hw/epf/ntb_hw_epf.c- Extension
.c- Size
- 17575 bytes
- Lines
- 790
- Domain
- Driver Families
- Bucket
- drivers/ntb
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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/module.hlinux/pci.hlinux/slab.hlinux/ntb.h
Detected Declarations
struct ntb_epf_devenum pci_barnoenum epf_ntb_barfunction ntb_epf_send_commandfunction ntb_epf_mw_to_barfunction ntb_epf_mw_countfunction ntb_epf_mw_get_alignfunction ntb_epf_link_is_upfunction ntb_epf_spad_readfunction ntb_epf_spad_writefunction ntb_epf_peer_spad_readfunction ntb_epf_peer_spad_writefunction ntb_epf_link_enablefunction ntb_epf_link_disablefunction ntb_epf_vec_isrfunction ntb_epf_init_isrfunction ntb_epf_peer_mw_countfunction ntb_epf_spad_countfunction ntb_epf_db_valid_maskfunction ntb_epf_db_set_maskfunction ntb_epf_mw_set_transfunction ntb_epf_mw_clear_transfunction ntb_epf_peer_mw_get_addrfunction ntb_epf_peer_db_setfunction ntb_epf_db_readfunction ntb_epf_db_clear_maskfunction ntb_epf_db_clearfunction ntb_epf_init_structfunction ntb_epf_init_devfunction ntb_epf_init_pcifunction ntb_epf_deinit_pcifunction ntb_epf_cleanup_isrfunction ntb_epf_pci_probefunction ntb_epf_pci_remove
Annotated Snippet
static struct pci_driver ntb_epf_pci_driver = {
.name = KBUILD_MODNAME,
.id_table = ntb_epf_pci_tbl,
.probe = ntb_epf_pci_probe,
.remove = ntb_epf_pci_remove,
};
module_pci_driver(ntb_epf_pci_driver);
MODULE_DESCRIPTION("PCI ENDPOINT NTB HOST DRIVER");
MODULE_AUTHOR("Kishon Vijay Abraham I <kishon@ti.com>");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/delay.h`, `linux/module.h`, `linux/pci.h`, `linux/slab.h`, `linux/ntb.h`.
- Detected declarations: `struct ntb_epf_dev`, `enum pci_barno`, `enum epf_ntb_bar`, `function ntb_epf_send_command`, `function ntb_epf_mw_to_bar`, `function ntb_epf_mw_count`, `function ntb_epf_mw_get_align`, `function ntb_epf_link_is_up`, `function ntb_epf_spad_read`, `function ntb_epf_spad_write`.
- Atlas domain: Driver Families / drivers/ntb.
- Implementation status: pattern implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- 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.