drivers/infiniband/core/iwcm.c
Source file repositories/reference/linux-study-clean/drivers/infiniband/core/iwcm.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/infiniband/core/iwcm.c- Extension
.c- Size
- 33696 bytes
- Lines
- 1207
- 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.
- 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/dma-mapping.hlinux/err.hlinux/idr.hlinux/interrupt.hlinux/rbtree.hlinux/sched.hlinux/spinlock.hlinux/workqueue.hlinux/completion.hlinux/slab.hlinux/module.hlinux/sysctl.hrdma/iw_cm.hrdma/ib_addr.hrdma/iw_portmap.hrdma/rdma_netlink.hiwcm.h
Detected Declarations
struct iwcm_workfunction iwcm_reject_msgfunction providerfunction put_workfunction dealloc_work_entriesfunction list_for_each_safefunction alloc_work_entriesfunction copy_private_datafunction free_cm_idfunction iwcm_deref_idfunction add_reffunction rem_reffunction iwcm_modify_qp_errfunction iwcm_modify_qp_sqdfunction iw_cm_disconnectfunction destroy_cm_idfunction iw_destroy_cm_idfunction actualfunction iwpm_create_mapinfofunction iw_cm_listenfunction iw_cm_rejectfunction iw_cm_acceptfunction iw_cm_connectfunction cm_conn_req_handlerfunction cm_conn_est_handlerfunction cm_conn_rep_handlerfunction cm_disconnect_handlerfunction cm_close_handlerfunction process_eventfunction cm_work_handlerfunction cm_event_handlerfunction iwcm_init_qp_init_attrfunction iwcm_init_qp_rts_attrfunction iw_cm_init_qp_attrfunction iw_cm_initfunction iw_cm_cleanupmodule init iw_cm_initexport iwcm_reject_msgexport iw_create_cm_idexport iw_cm_disconnectexport iw_destroy_cm_idexport iw_cm_listenexport iw_cm_rejectexport iw_cm_acceptexport iw_cm_connectexport iw_cm_init_qp_attr
Annotated Snippet
module_init(iw_cm_init);
module_exit(iw_cm_cleanup);
Annotation
- Immediate include surface: `linux/dma-mapping.h`, `linux/err.h`, `linux/idr.h`, `linux/interrupt.h`, `linux/rbtree.h`, `linux/sched.h`, `linux/spinlock.h`, `linux/workqueue.h`.
- Detected declarations: `struct iwcm_work`, `function iwcm_reject_msg`, `function provider`, `function put_work`, `function dealloc_work_entries`, `function list_for_each_safe`, `function alloc_work_entries`, `function copy_private_data`, `function free_cm_id`, `function iwcm_deref_id`.
- 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.
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.