drivers/infiniband/core/cm.c
Source file repositories/reference/linux-study-clean/drivers/infiniband/core/cm.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/infiniband/core/cm.c- Extension
.c- Size
- 132354 bytes
- Lines
- 4561
- 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/completion.hlinux/dma-mapping.hlinux/device.hlinux/module.hlinux/err.hlinux/idr.hlinux/interrupt.hlinux/random.hlinux/rbtree.hlinux/spinlock.hlinux/slab.hlinux/sysfs.hlinux/workqueue.hlinux/kdev_t.hlinux/etherdevice.hrdma/ib_cache.hrdma/ib_cm.hrdma/ib_sysfs.hcm_msgs.hcore_priv.hcm_trace.h
Detected Declarations
struct cm_id_privatestruct cm_workstruct cm_counter_attributestruct cm_portstruct cm_devicestruct cm_avstruct cm_workstruct cm_timewait_infostruct cm_id_privatefunction ibcm_reject_msgfunction cm_dev_releasefunction cm_device_putfunction cm_deref_idfunction cm_alloc_msg_agentfunction cm_free_msgfunction cm_alloc_priv_msg_repfunction cm_alloc_priv_msgfunction cm_free_priv_msgfunction cm_alloc_response_msg_no_ahfunction cm_create_response_msg_ahfunction cm_alloc_response_msgfunction cm_set_private_datafunction cm_set_av_portfunction cm_init_av_for_lapfunction cm_init_av_for_responsefunction get_cm_port_from_pathfunction list_for_each_entryfunction list_for_each_entryfunction cm_init_av_by_pathfunction cm_move_av_from_pathfunction cm_destroy_avfunction cm_local_idfunction be32_ltfunction be32_gtfunction be64_ltfunction be64_gtfunction cm_insert_remote_idfunction cm_insert_remote_qpnfunction cm_insert_remote_sidrfunction cm_finalize_idfunction cm_free_workfunction cm_queue_work_unlockfunction cm_convert_to_msfunction itfunction cm_remove_remotefunction cm_enter_timewaitfunction cm_reset_to_idlefunction cm_destroy_id_wait_timeout
Annotated Snippet
module_init(ib_cm_init);
module_exit(ib_cm_cleanup);
Annotation
- Immediate include surface: `linux/completion.h`, `linux/dma-mapping.h`, `linux/device.h`, `linux/module.h`, `linux/err.h`, `linux/idr.h`, `linux/interrupt.h`, `linux/random.h`.
- Detected declarations: `struct cm_id_private`, `struct cm_work`, `struct cm_counter_attribute`, `struct cm_port`, `struct cm_device`, `struct cm_av`, `struct cm_work`, `struct cm_timewait_info`, `struct cm_id_private`, `function ibcm_reject_msg`.
- 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.