drivers/net/ethernet/broadcom/cnic.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/broadcom/cnic.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/broadcom/cnic.c- Extension
.c- Size
- 152992 bytes
- Lines
- 5797
- Domain
- Driver Families
- Bucket
- drivers/net
- 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/kernel.hlinux/errno.hlinux/list.hlinux/slab.hlinux/pci.hlinux/init.hlinux/netdevice.hlinux/uio_driver.hlinux/in.hlinux/dma-mapping.hlinux/delay.hlinux/ethtool.hlinux/if_vlan.hlinux/prefetch.hlinux/random.hlinux/workqueue.hnet/ip.hnet/tcp.hnet/route.hnet/ipv6.hnet/ip6_route.hnet/ip6_checksum.hscsi/iscsi_if.hcnic_if.hbnx2.hbnx2x/bnx2x.hbnx2x/bnx2x_reg.hbnx2x/bnx2x_fw_defs.hbnx2x/bnx2x_hsi.h../../../scsi/bnx2i/57xx_iscsi_constants.h../../../scsi/bnx2i/57xx_iscsi_hsi.h
Detected Declarations
function cnic_uio_openfunction cnic_uio_closefunction cnic_holdfunction cnic_putfunction csk_holdfunction csk_putfunction ulp_getfunction ulp_putfunction cnic_ctx_wrfunction cnic_ctx_tbl_wrfunction cnic_ring_ctlfunction cnic_reg_wr_indfunction cnic_reg_rd_indfunction cnic_ulp_ctlfunction cnic_in_usefunction cnic_spq_completionfunction cnic_get_l5_cidfunction cnic_send_nlmsgfunction cnic_iscsi_nl_msg_recvfunction cnic_offld_prepfunction cnic_close_prepfunction cnic_abort_prepfunction cnic_register_driverfunction cnic_unregister_driverfunction cnic_register_devicefunction cnic_unregister_devicefunction cnic_init_id_tblfunction cnic_free_id_tblfunction cnic_alloc_idfunction cnic_alloc_new_idfunction cnic_free_idfunction cnic_free_dmafunction cnic_setup_page_tblfunction cnic_setup_page_tbl_lefunction cnic_alloc_dmafunction cnic_free_contextfunction __cnic_free_uio_ringsfunction __cnic_free_uiofunction cnic_free_uiofunction cnic_free_rescfunction cnic_alloc_contextfunction cnic_bnx2_next_idxfunction cnic_bnx2_hw_idxfunction cnic_bnx2x_next_idxfunction cnic_bnx2x_hw_idxfunction cnic_alloc_kcqfunction __cnic_alloc_uio_ringsfunction cnic_alloc_uio_rings
Annotated Snippet
module_init(cnic_init);
module_exit(cnic_exit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/kernel.h`, `linux/errno.h`, `linux/list.h`, `linux/slab.h`, `linux/pci.h`, `linux/init.h`, `linux/netdevice.h`.
- Detected declarations: `function cnic_uio_open`, `function cnic_uio_close`, `function cnic_hold`, `function cnic_put`, `function csk_hold`, `function csk_put`, `function ulp_get`, `function ulp_put`, `function cnic_ctx_wr`, `function cnic_ctx_tbl_wr`.
- Atlas domain: Driver Families / drivers/net.
- 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.