drivers/infiniband/hw/ocrdma/ocrdma_main.c
Source file repositories/reference/linux-study-clean/drivers/infiniband/hw/ocrdma/ocrdma_main.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/infiniband/hw/ocrdma/ocrdma_main.c- Extension
.c- Size
- 11618 bytes
- Lines
- 430
- 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/idr.hrdma/ib_verbs.hrdma/ib_user_verbs.hrdma/ib_addr.hrdma/ib_mad.hlinux/netdevice.hnet/addrconf.hocrdma.hocrdma_verbs.hocrdma_ah.hbe_roce.hocrdma_hw.hocrdma_stats.hrdma/ocrdma-abi.h
Detected Declarations
function ocrdma_link_layerfunction ocrdma_port_immutablefunction get_dev_fw_strfunction hw_rev_showfunction hca_type_showfunction ocrdma_register_devicefunction ocrdma_alloc_resourcesfunction ocrdma_free_resourcesfunction ocrdma_remove_freefunction ocrdma_removefunction ocrdma_dispatch_port_activefunction ocrdma_dispatch_port_errorfunction ocrdma_shutdownfunction ocrdma_event_handlerfunction ocrdma_update_link_statefunction ocrdma_init_modulefunction ocrdma_exit_modulemodule init ocrdma_init_module
Annotated Snippet
module_init(ocrdma_init_module);
module_exit(ocrdma_exit_module);
Annotation
- Immediate include surface: `linux/module.h`, `linux/idr.h`, `rdma/ib_verbs.h`, `rdma/ib_user_verbs.h`, `rdma/ib_addr.h`, `rdma/ib_mad.h`, `linux/netdevice.h`, `net/addrconf.h`.
- Detected declarations: `function ocrdma_link_layer`, `function ocrdma_port_immutable`, `function get_dev_fw_str`, `function hw_rev_show`, `function hca_type_show`, `function ocrdma_register_device`, `function ocrdma_alloc_resources`, `function ocrdma_free_resources`, `function ocrdma_remove_free`, `function ocrdma_remove`.
- 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.