drivers/ntb/test/ntb_msi_test.c
Source file repositories/reference/linux-study-clean/drivers/ntb/test/ntb_msi_test.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/ntb/test/ntb_msi_test.c- Extension
.c- Size
- 9675 bytes
- Lines
- 433
- Domain
- Driver Families
- Bucket
- drivers/ntb
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- 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/module.hlinux/debugfs.hlinux/ntb.hlinux/pci.hlinux/radix-tree.hlinux/workqueue.h
Detected Declarations
struct ntb_msit_ctxstruct ntb_msit_isr_ctxstruct ntb_msit_peerfunction ntb_msit_isrfunction ntb_msit_setup_workfunction ntb_msit_desc_changedfunction ntb_msit_link_eventfunction ntb_msit_copy_peer_descfunction ntb_msit_db_eventfunction ntb_msit_dbgfs_triggerfunction ntb_msit_dbgfs_port_getfunction ntb_msit_dbgfs_count_getfunction ntb_msit_dbgfs_ready_getfunction ntb_msit_dbgfs_ready_setfunction ntb_msit_dbgfs_occurrences_getfunction ntb_msit_dbgfs_local_port_getfunction ntb_msit_create_dbgfsfunction ntb_msit_remove_dbgfsfunction ntb_msit_probefunction ntb_msit_removefunction ntb_msit_initfunction ntb_msit_exitmodule init ntb_msit_init
Annotated Snippet
module_init(ntb_msit_init);
static void __exit ntb_msit_exit(void)
{
ntb_unregister_client(&ntb_msit_client);
debugfs_remove_recursive(ntb_msit_dbgfs_topdir);
}
module_exit(ntb_msit_exit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/debugfs.h`, `linux/ntb.h`, `linux/pci.h`, `linux/radix-tree.h`, `linux/workqueue.h`.
- Detected declarations: `struct ntb_msit_ctx`, `struct ntb_msit_isr_ctx`, `struct ntb_msit_peer`, `function ntb_msit_isr`, `function ntb_msit_setup_work`, `function ntb_msit_desc_changed`, `function ntb_msit_link_event`, `function ntb_msit_copy_peer_desc`, `function ntb_msit_db_event`, `function ntb_msit_dbgfs_trigger`.
- Atlas domain: Driver Families / drivers/ntb.
- 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.