drivers/net/ethernet/chelsio/cxgb4/l2t.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/chelsio/cxgb4/l2t.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/chelsio/cxgb4/l2t.c- Extension
.c- Size
- 19707 bytes
- Lines
- 744
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/skbuff.hlinux/netdevice.hlinux/if.hlinux/if_vlan.hlinux/jhash.hlinux/module.hlinux/debugfs.hlinux/seq_file.hnet/neighbour.hcxgb4.hl2t.ht4_msg.ht4fw_api.ht4_regs.ht4_values.h
Detected Declarations
struct l2t_datafunction vlan_priofunction l2t_holdfunction arp_hashfunction ipv6_hashfunction addr_hashfunction addreqfunction neigh_replacefunction write_l2efunction send_pendingfunction do_l2t_write_rplfunction arpq_enqueuefunction cxgb4_l2t_sendfunction _t4_l2e_freefunction t4_l2e_freefunction cxgb4_l2t_releasefunction reuse_entryfunction cxgb4_select_ntuplefunction t4_l2t_updatefunction l2t_seq_stopfunction cxgb4_check_l2t_validfunction l2t_seq_showfunction l2t_seq_openexport cxgb4_l2t_sendexport cxgb4_l2t_releaseexport cxgb4_l2t_getexport cxgb4_select_ntupleexport cxgb4_check_l2t_valid
Annotated Snippet
const struct file_operations t4_l2t_fops = {
.owner = THIS_MODULE,
.open = l2t_seq_open,
.read = seq_read,
.llseek = seq_lseek,
.release = seq_release,
};
Annotation
- Immediate include surface: `linux/skbuff.h`, `linux/netdevice.h`, `linux/if.h`, `linux/if_vlan.h`, `linux/jhash.h`, `linux/module.h`, `linux/debugfs.h`, `linux/seq_file.h`.
- Detected declarations: `struct l2t_data`, `function vlan_prio`, `function l2t_hold`, `function arp_hash`, `function ipv6_hash`, `function addr_hash`, `function addreq`, `function neigh_replace`, `function write_l2e`, `function send_pending`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: pattern 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.