drivers/net/ethernet/sfc/ef100.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/sfc/ef100.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/sfc/ef100.c- Extension
.c- Size
- 14838 bytes
- Lines
- 559
- 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.
- 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
net_driver.hlinux/module.hefx_common.hefx_channels.hio.hef100_nic.hef100_netdev.hef100_sriov.hef100_regs.hef100.h
Detected Declarations
struct ef100_func_ctl_windowfunction _ef100_pci_get_bar_bits_with_widthfunction ef100_pci_parse_ef100_entryfunction ef100_pci_does_bar_overflowfunction ef100_pci_parse_continue_entryfunction ef100_pci_parse_ef100_entryfunction _ef100_pci_get_config_bits_with_widthfunction ef100_pci_parse_xilinx_capfunction ef100_pci_find_func_ctrl_windowfunction unloadfunction ef100_pci_probefunction ef100_pci_sriov_configure
Annotated Snippet
struct pci_driver ef100_pci_driver = {
.name = "sfc_ef100",
.id_table = ef100_pci_table,
.probe = ef100_pci_probe,
.remove = ef100_pci_remove,
#ifdef CONFIG_SFC_SRIOV
.sriov_configure = ef100_pci_sriov_configure,
#endif
.err_handler = &efx_err_handlers,
};
MODULE_DEVICE_TABLE(pci, ef100_pci_table);
Annotation
- Immediate include surface: `net_driver.h`, `linux/module.h`, `efx_common.h`, `efx_channels.h`, `io.h`, `ef100_nic.h`, `ef100_netdev.h`, `ef100_sriov.h`.
- Detected declarations: `struct ef100_func_ctl_window`, `function _ef100_pci_get_bar_bits_with_width`, `function ef100_pci_parse_ef100_entry`, `function ef100_pci_does_bar_overflow`, `function ef100_pci_parse_continue_entry`, `function ef100_pci_parse_ef100_entry`, `function _ef100_pci_get_config_bits_with_width`, `function ef100_pci_parse_xilinx_cap`, `function ef100_pci_find_func_ctrl_window`, `function unload`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: pattern implementation candidate.
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.