drivers/net/ethernet/intel/fm10k/fm10k_pci.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/intel/fm10k/fm10k_pci.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/intel/fm10k/fm10k_pci.c- Extension
.c- Size
- 71882 bytes
- Lines
- 2530
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/interrupt.hfm10k.h
Detected Declarations
function fm10k_read_pci_cfg_wordfunction fm10k_read_regfunction fm10k_hw_readyfunction fm10k_macvlan_schedulefunction fm10k_stop_macvlan_taskfunction fm10k_resume_macvlan_taskfunction fm10k_service_event_schedulefunction fm10k_service_event_completefunction fm10k_stop_service_eventfunction fm10k_start_service_eventfunction fm10k_service_timerfunction fm10k_prepare_for_resetfunction fm10k_handle_resetfunction fm10k_detach_subtaskfunction fm10k_reset_subtaskfunction fm10k_configure_swpri_mapfunction fm10k_watchdog_update_host_statefunction fm10k_mbx_subtaskfunction fm10k_watchdog_host_is_readyfunction fm10k_watchdog_host_not_readyfunction fm10k_update_statsfunction fm10k_watchdog_flush_txfunction fm10k_watchdog_subtaskfunction fm10k_check_hang_subtaskfunction fm10k_service_taskfunction fm10k_macvlan_taskfunction fm10k_configure_tx_ringfunction fm10k_enable_tx_ringfunction fm10k_configure_txfunction fm10k_configure_rx_ringfunction fm10k_update_rx_drop_enfunction fm10k_configure_dglortfunction fm10k_configure_rxfunction fm10k_napi_enable_allfunction fm10k_msix_clean_ringsfunction fm10k_msix_mbx_vffunction fm10k_handle_faultfunction fm10k_report_faultfunction fm10k_reset_drop_on_emptyfunction fm10k_msix_mbx_pffunction fm10k_mbx_free_irqfunction fm10k_mbx_mac_addrfunction fm10k_mbx_errorfunction fm10k_mbx_request_irq_vffunction fm10k_lport_mapfunction fm10k_update_pvidfunction fm10k_mbx_request_irq_pffunction fm10k_mbx_request_irq
Annotated Snippet
static struct pci_driver fm10k_driver = {
.name = fm10k_driver_name,
.id_table = fm10k_pci_tbl,
.probe = fm10k_probe,
.remove = fm10k_remove,
.driver.pm = pm_sleep_ptr(&fm10k_pm_ops),
.sriov_configure = fm10k_iov_configure,
.err_handler = &fm10k_err_handler
};
/**
* fm10k_register_pci_driver - register driver interface
*
* This function is called on module load in order to register the driver.
**/
int fm10k_register_pci_driver(void)
{
return pci_register_driver(&fm10k_driver);
}
/**
* fm10k_unregister_pci_driver - unregister driver interface
*
* This function is called on module unload in order to remove the driver.
**/
void fm10k_unregister_pci_driver(void)
{
pci_unregister_driver(&fm10k_driver);
}
Annotation
- Immediate include surface: `linux/module.h`, `linux/interrupt.h`, `fm10k.h`.
- Detected declarations: `function fm10k_read_pci_cfg_word`, `function fm10k_read_reg`, `function fm10k_hw_ready`, `function fm10k_macvlan_schedule`, `function fm10k_stop_macvlan_task`, `function fm10k_resume_macvlan_task`, `function fm10k_service_event_schedule`, `function fm10k_service_event_complete`, `function fm10k_stop_service_event`, `function fm10k_start_service_event`.
- 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.
- 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.