drivers/scsi/cxgbi/libcxgbi.c
Source file repositories/reference/linux-study-clean/drivers/scsi/cxgbi/libcxgbi.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/scsi/cxgbi/libcxgbi.c- Extension
.c- Size
- 79952 bytes
- Lines
- 3098
- Domain
- Driver Families
- Bucket
- drivers/scsi
- 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/skbuff.hlinux/crypto.hlinux/scatterlist.hlinux/pci.hscsi/scsi.hscsi/scsi_cmnd.hscsi/scsi_host.hlinux/if_vlan.hlinux/inet.hnet/dst.hnet/route.hnet/ipv6.hnet/ip6_route.hnet/addrconf.hlinux/inetdevice.hlinux/module.hnet/tcp.hlibcxgbi.h
Detected Declarations
function cxgbi_decode_sw_tagfunction cxgbi_device_portmap_createfunction cxgbi_device_portmap_cleanupfunction cxgbi_device_destroyfunction cxgbi_device_unregisterfunction cxgbi_device_unregister_allfunction cxgbi_hbas_removefunction cxgbi_hbas_addfunction sock_get_portfunction sock_put_portfunction cxgbi_sock_free_cpl_skbsfunction cxgbi_check_routefunction cxgbi_check_route6function cxgbi_sock_establishedfunction cxgbi_inform_iscsi_conn_closingfunction cxgbi_sock_closedfunction need_active_closefunction cxgbi_sock_fail_act_openfunction cxgbi_sock_act_open_req_arp_failurefunction cxgbi_sock_rcv_abort_rplfunction cxgbi_sock_rcv_peer_closefunction cxgbi_sock_rcv_close_conn_rplfunction cxgbi_sock_rcv_wr_ackfunction cxgbi_sock_find_best_mtufunction cxgbi_sock_select_mssfunction cxgbi_sock_skb_entailfunction cxgbi_sock_purge_wr_queuefunction cxgbi_sock_check_wr_invariantsfunction scmd_get_paramsfunction cxgbi_ddp_set_one_ppodfunction cxgbi_ddp_ppm_setupfunction cxgbi_ddp_sgl_checkfunction cxgbi_ddp_reservefunction task_release_ittfunction cxgbi_ppm_is_ddp_tagfunction cxgbi_build_sw_tagfunction task_reserve_ittfunction cxgbi_parse_pdu_ittfunction cxgbi_conn_tx_openfunction read_pdu_skbfunction skb_read_pdu_bhsfunction skb_read_pdu_datafunction csk_return_rx_creditsfunction cxgbi_conn_pdu_readyfunction sgl_seek_offsetfunction for_each_sgfunction sgl_read_to_fragsfunction cxgbi_task_data_sgl_check
Annotated Snippet
module_init(libcxgbi_init_module);
module_exit(libcxgbi_exit_module);
Annotation
- Immediate include surface: `linux/skbuff.h`, `linux/crypto.h`, `linux/scatterlist.h`, `linux/pci.h`, `scsi/scsi.h`, `scsi/scsi_cmnd.h`, `scsi/scsi_host.h`, `linux/if_vlan.h`.
- Detected declarations: `function cxgbi_decode_sw_tag`, `function cxgbi_device_portmap_create`, `function cxgbi_device_portmap_cleanup`, `function cxgbi_device_destroy`, `function cxgbi_device_unregister`, `function cxgbi_device_unregister_all`, `function cxgbi_hbas_remove`, `function cxgbi_hbas_add`, `function sock_get_port`, `function sock_put_port`.
- Atlas domain: Driver Families / drivers/scsi.
- 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.