drivers/ntb/test/ntb_pingpong.c
Source file repositories/reference/linux-study-clean/drivers/ntb/test/ntb_pingpong.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/ntb/test/ntb_pingpong.c- Extension
.c- Size
- 10626 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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/init.hlinux/kernel.hlinux/module.hlinux/device.hlinux/bitops.hlinux/pci.hlinux/slab.hlinux/hrtimer.hlinux/debugfs.hlinux/ntb.h
Detected Declarations
struct pp_ctxfunction pp_find_next_peerfunction pp_setupfunction pp_clearfunction pp_pingfunction pp_pongfunction pp_timer_funcfunction pp_link_eventfunction pp_db_eventfunction pp_check_ntbfunction pp_init_fldsfunction pp_mask_eventsfunction pp_setup_ctxfunction pp_clear_ctxfunction pp_setup_dbgfsfunction pp_clear_dbgfsfunction pp_probefunction pp_removefunction pp_initfunction pp_exitmodule init pp_init
Annotated Snippet
module_init(pp_init);
static void __exit pp_exit(void)
{
ntb_unregister_client(&pp_client);
debugfs_remove_recursive(pp_dbgfs_topdir);
}
module_exit(pp_exit);
Annotation
- Immediate include surface: `linux/init.h`, `linux/kernel.h`, `linux/module.h`, `linux/device.h`, `linux/bitops.h`, `linux/pci.h`, `linux/slab.h`, `linux/hrtimer.h`.
- Detected declarations: `struct pp_ctx`, `function pp_find_next_peer`, `function pp_setup`, `function pp_clear`, `function pp_ping`, `function pp_pong`, `function pp_timer_func`, `function pp_link_event`, `function pp_db_event`, `function pp_check_ntb`.
- Atlas domain: Driver Families / drivers/ntb.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.