drivers/net/phy/stubs.c

Source file repositories/reference/linux-study-clean/drivers/net/phy/stubs.c

File Facts

System
Linux kernel
Corpus path
drivers/net/phy/stubs.c
Extension
.c
Size
357 bytes
Lines
11
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.

Dependency Surface

Detected Declarations

Annotated Snippet

// SPDX-License-Identifier: GPL-2.0+
/*
 * Stubs for PHY library functionality called by the core network stack.
 * These are necessary because CONFIG_PHYLIB can be a module, and built-in
 * code cannot directly call symbols exported by modules.
 */
#include <linux/phylib_stubs.h>

const struct phylib_stubs *phylib_stubs;
EXPORT_SYMBOL_GPL(phylib_stubs);

Annotation

Implementation Notes