drivers/target/iscsi/cxgbit/cxgbit_main.c
Source file repositories/reference/linux-study-clean/drivers/target/iscsi/cxgbit/cxgbit_main.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/target/iscsi/cxgbit/cxgbit_main.c- Extension
.c- Size
- 18037 bytes
- Lines
- 747
- Domain
- Driver Families
- Bucket
- drivers/target
- 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
cxgbit.hnet/dcbevent.hcxgb4_dcb.h
Detected Declarations
struct cxgbit_dcb_workfunction _cxgbit_free_cdevfunction cxgbit_set_mdslfunction cxgbit_close_connfunction cxgbit_detach_cdevfunction cxgbit_uld_state_changefunction cxgbit_process_ddpvldfunction cxgbit_lro_add_packet_rspfunction cxgbit_copy_fragsfunction cxgbit_lro_add_packet_glfunction cxgbit_lro_init_skbfunction cxgbit_queue_lro_skbfunction cxgbit_lro_flushfunction cxgbit_uld_lro_flushfunction cxgbit_lro_receivefunction cxgbit_uld_lro_rx_handlerfunction cxgbit_update_dcb_priorityfunction cxgbit_dcb_workfnfunction cxgbit_dcbevent_notifyfunction cxgbit_get_sup_prot_opsfunction cxgbit_initfunction cxgbit_exitmodule init cxgbit_init
Annotated Snippet
module_init(cxgbit_init);
module_exit(cxgbit_exit);
MODULE_DESCRIPTION("Chelsio iSCSI target offload driver");
MODULE_AUTHOR("Chelsio Communications");
MODULE_VERSION(DRV_VERSION);
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `cxgbit.h`, `net/dcbevent.h`, `cxgb4_dcb.h`.
- Detected declarations: `struct cxgbit_dcb_work`, `function _cxgbit_free_cdev`, `function cxgbit_set_mdsl`, `function cxgbit_close_conn`, `function cxgbit_detach_cdev`, `function cxgbit_uld_state_change`, `function cxgbit_process_ddpvld`, `function cxgbit_lro_add_packet_rsp`, `function cxgbit_copy_frags`, `function cxgbit_lro_add_packet_gl`.
- Atlas domain: Driver Families / drivers/target.
- 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.