drivers/infiniband/ulp/srpt/ib_srpt.c
Source file repositories/reference/linux-study-clean/drivers/infiniband/ulp/srpt/ib_srpt.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/infiniband/ulp/srpt/ib_srpt.c- Extension
.c- Size
- 108880 bytes
- Lines
- 3988
- Domain
- Driver Families
- Bucket
- drivers/infiniband
- 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.
- 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/hex.hlinux/init.hlinux/slab.hlinux/err.hlinux/ctype.hlinux/kthread.hlinux/string.hlinux/delay.hlinux/atomic.hlinux/inet.hrdma/ib_cache.hscsi/scsi_proto.hscsi/scsi_tcq.htarget/target_core_base.htarget/target_core_fabric.hib_srpt.h
Detected Declarations
struct srpt_memory_cache_entrystruct port_and_port_idfunction srpt_set_u64_xfunction srpt_get_u64_xfunction srpt_cache_putfunction srpt_set_ch_statefunction srpt_event_handlerfunction srpt_srq_eventfunction srpt_qp_eventfunction c_listfunction srpt_get_class_port_infofunction srpt_get_ioufunction srpt_get_iocfunction srpt_get_svc_entriesfunction srpt_mgmt_method_getfunction srpt_mad_send_handlerfunction srpt_mad_recv_handlerfunction srpt_format_guidfunction srpt_refresh_portfunction srpt_unregister_mad_agentfunction srpt_free_ioctxfunction srpt_free_ioctx_ringfunction srpt_set_cmd_statefunction srpt_test_and_set_cmd_statefunction srpt_post_recvfunction srpt_zerolength_writefunction srpt_zerolength_write_donefunction srpt_alloc_rw_ctxsfunction srpt_free_rw_ctxsfunction srpt_get_desc_tblfunction srpt_init_ch_qpfunction srpt_ch_qp_rtrfunction srpt_ch_qp_rtsfunction srpt_ch_qp_errfunction srpt_abort_cmdfunction check_stop_freefunction srpt_build_cmd_rspfunction srpt_build_tskmgmt_rspfunction srpt_check_stop_freefunction srpt_handle_cmdfunction srp_tmr_to_tcmfunction srpt_handle_tsk_mgmtfunction srpt_handle_new_iufunction srpt_recv_donefunction srpt_process_wait_listfunction srpt_get_send_ioctxfunction srpt_create_ch_ibfunction srpt_destroy_ch_ib
Annotated Snippet
module_init(srpt_init_module);
module_exit(srpt_cleanup_module);
Annotation
- Immediate include surface: `linux/module.h`, `linux/hex.h`, `linux/init.h`, `linux/slab.h`, `linux/err.h`, `linux/ctype.h`, `linux/kthread.h`, `linux/string.h`.
- Detected declarations: `struct srpt_memory_cache_entry`, `struct port_and_port_id`, `function srpt_set_u64_x`, `function srpt_get_u64_x`, `function srpt_cache_put`, `function srpt_set_ch_state`, `function srpt_event_handler`, `function srpt_srq_event`, `function srpt_qp_event`, `function c_list`.
- Atlas domain: Driver Families / drivers/infiniband.
- Implementation status: integration 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.