drivers/net/phy/fixed_phy.c
Source file repositories/reference/linux-study-clean/drivers/net/phy/fixed_phy.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/phy/fixed_phy.c- Extension
.c- Size
- 5053 bytes
- Lines
- 231
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/module.hlinux/mii.hlinux/phy.hlinux/phy_fixed.hlinux/err.hlinux/slab.hlinux/of.hlinux/netdevice.hswphy.h
Detected Declarations
struct fixed_phyfunction fixed_phy_change_carrierfunction fixed_mdio_readfunction fixed_mdio_writefunction fixed_phy_set_link_updatefunction fixed_phy_delfunction fixed_phy_get_free_addrfunction fixed_phy_unregisterfunction fixed_mdio_bus_initfunction fixed_mdio_bus_exitmodule init fixed_mdio_bus_initexport fixed_phy_change_carrierexport fixed_phy_set_link_updateexport fixed_phy_registerexport fixed_phy_register_100fdexport fixed_phy_unregister
Annotated Snippet
module_init(fixed_mdio_bus_init);
static void __exit fixed_mdio_bus_exit(void)
{
mdiobus_unregister(fmb_mii_bus);
mdiobus_free(fmb_mii_bus);
}
module_exit(fixed_mdio_bus_exit);
MODULE_DESCRIPTION("Fixed MDIO bus (MDIO bus emulation with fixed PHYs)");
MODULE_AUTHOR("Vitaly Bordug");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/mii.h`, `linux/phy.h`, `linux/phy_fixed.h`, `linux/err.h`, `linux/slab.h`, `linux/of.h`.
- Detected declarations: `struct fixed_phy`, `function fixed_phy_change_carrier`, `function fixed_mdio_read`, `function fixed_mdio_write`, `function fixed_phy_set_link_update`, `function fixed_phy_del`, `function fixed_phy_get_free_addr`, `function fixed_phy_unregister`, `function fixed_mdio_bus_init`, `function fixed_mdio_bus_exit`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: integration 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.