drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/chcr_ipsec.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/chcr_ipsec.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/chcr_ipsec.c- Extension
.c- Size
- 22227 bytes
- Lines
- 823
- 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.
- 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/kernel.hlinux/module.hlinux/skbuff.hlinux/rtnetlink.hlinux/highmem.hlinux/if_vlan.hlinux/ip.hlinux/netdevice.hnet/esp.hnet/xfrm.hcrypto/aes.hcrypto/hash.hcrypto/sha1.hcrypto/sha2.hcrypto/authenc.hcrypto/internal/aead.hcrypto/null.hcrypto/internal/skcipher.hcrypto/aead.hcrypto/scatterwalk.hcrypto/internal/hash.hchcr_ipsec.h
Detected Declarations
function ch_ipsec_uld_state_changefunction ch_ipsec_setauthsizefunction ch_ipsec_setkeyfunction ch_ipsec_xfrm_add_statefunction ch_ipsec_xfrm_del_statefunction ch_ipsec_xfrm_free_statefunction ch_ipsec_advance_esn_statefunction is_eth_immfunction calc_tx_sec_flitsfunction flits_to_descfunction txq_availfunction eth_txq_stopfunction txq_advancefunction ch_ipsec_xmitfunction ch_ipsec_initfunction ch_ipsec_exitmodule init ch_ipsec_init
Annotated Snippet
module_init(ch_ipsec_init);
module_exit(ch_ipsec_exit);
MODULE_DESCRIPTION("Crypto IPSEC for Chelsio Terminator cards.");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Chelsio Communications");
MODULE_VERSION(CHIPSEC_DRV_VERSION);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/skbuff.h`, `linux/rtnetlink.h`, `linux/highmem.h`, `linux/if_vlan.h`, `linux/ip.h`, `linux/netdevice.h`.
- Detected declarations: `function ch_ipsec_uld_state_change`, `function ch_ipsec_setauthsize`, `function ch_ipsec_setkey`, `function ch_ipsec_xfrm_add_state`, `function ch_ipsec_xfrm_del_state`, `function ch_ipsec_xfrm_free_state`, `function ch_ipsec_advance_esn_state`, `function is_eth_imm`, `function calc_tx_sec_flits`, `function flits_to_desc`.
- 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.
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.