drivers/net/ethernet/hisilicon/hibmcge/hbg_err.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/hisilicon/hibmcge/hbg_err.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/hisilicon/hibmcge/hbg_err.c- Extension
.c- Size
- 4554 bytes
- Lines
- 195
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/etherdevice.hlinux/netdevice.hlinux/phy.hlinux/rtnetlink.hhbg_common.hhbg_err.hhbg_hw.h
Detected Declarations
function hbg_restore_mac_tablefunction hbg_restore_user_def_settingsfunction hbg_rebuildfunction hbg_reset_preparefunction hbg_reset_donefunction hbg_resetfunction hbg_err_resetfunction hbg_pci_err_detectedfunction hbg_pci_err_slot_resetfunction hbg_pci_err_reset_preparefunction hbg_pci_err_reset_donefunction hbg_set_pci_err_handler
Annotated Snippet
void hbg_set_pci_err_handler(struct pci_driver *pdrv)
{
pdrv->err_handler = &hbg_pci_err_handler;
}
Annotation
- Immediate include surface: `linux/etherdevice.h`, `linux/netdevice.h`, `linux/phy.h`, `linux/rtnetlink.h`, `hbg_common.h`, `hbg_err.h`, `hbg_hw.h`.
- Detected declarations: `function hbg_restore_mac_table`, `function hbg_restore_user_def_settings`, `function hbg_rebuild`, `function hbg_reset_prepare`, `function hbg_reset_done`, `function hbg_reset`, `function hbg_err_reset`, `function hbg_pci_err_detected`, `function hbg_pci_err_slot_reset`, `function hbg_pci_err_reset_prepare`.
- 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.