drivers/net/ethernet/freescale/enetc/enetc_msg.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/freescale/enetc/enetc_msg.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/freescale/enetc/enetc_msg.c- Extension
.c- Size
- 9492 bytes
- Lines
- 378
- 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.
- 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
enetc_pf_common.h
Detected Declarations
function enetc_msg_disable_mr_intfunction enetc_msg_enable_mr_intfunction enetc_msg_psi_msixfunction enetc_msg_check_crc16function enetc_msg_set_vf_primary_mac_addrfunction enetc_msg_handle_mac_filterfunction enetc_msg_handle_ip_revisionfunction enetc_msg_handle_rxmsgfunction enetc_msg_taskfunction enetc_msg_alloc_mbxfunction enetc_msg_free_mbxfunction enetc_msg_psi_initfunction enetc_msg_psi_freefunction enetc_sriov_configureexport enetc_sriov_configure
Annotated Snippet
if (err) {
dev_err(&pdev->dev, "enetc_msg_psi_init (%d)\n", err);
goto err_msg_psi;
}
err = pci_enable_sriov(pdev, num_vfs);
if (err) {
dev_err(&pdev->dev, "pci_enable_sriov err %d\n", err);
goto err_en_sriov;
}
}
return num_vfs;
err_en_sriov:
enetc_msg_psi_free(pf);
err_msg_psi:
pf->num_vfs = 0;
return err;
}
EXPORT_SYMBOL_GPL(enetc_sriov_configure);
Annotation
- Immediate include surface: `enetc_pf_common.h`.
- Detected declarations: `function enetc_msg_disable_mr_int`, `function enetc_msg_enable_mr_int`, `function enetc_msg_psi_msix`, `function enetc_msg_check_crc16`, `function enetc_msg_set_vf_primary_mac_addr`, `function enetc_msg_handle_mac_filter`, `function enetc_msg_handle_ip_revision`, `function enetc_msg_handle_rxmsg`, `function enetc_msg_task`, `function enetc_msg_alloc_mbx`.
- 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.
- 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.