net/dsa/stubs.c

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

File Facts

System
Linux kernel
Corpus path
net/dsa/stubs.c
Extension
.c
Size
344 bytes
Lines
11
Domain
Networking Core
Bucket
Sockets, Protocols, Packet Path, And Network Policy
Inferred role
Networking Core: exported/initcall integration point
Status
integration implementation candidate

Why This File Exists

Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.

Dependency Surface

Detected Declarations

Annotated Snippet

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Stubs for DSA functionality called by the core network stack.
 * These are necessary because CONFIG_NET_DSA can be a module, and built-in
 * code cannot directly call symbols exported by modules.
 */
#include <net/dsa_stubs.h>

const struct dsa_stubs *dsa_stubs;
EXPORT_SYMBOL_GPL(dsa_stubs);

Annotation

Implementation Notes