net/ethtool/netlink.c
Source file repositories/reference/linux-study-clean/net/ethtool/netlink.c
File Facts
- System
- Linux kernel
- Corpus path
net/ethtool/netlink.c- Extension
.c- Size
- 45699 bytes
- Lines
- 1612
- 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.
- Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.
- 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
net/netdev_lock.hnet/netdev_queues.hnet/sock.hlinux/ethtool_netlink.hlinux/phy_link_topology.hlinux/pm_runtime.hcommon.hmodule_fw.hnetlink.h
Detected Declarations
struct ethnl_dump_ctxstruct ethnl_perphy_dump_ctxfunction ethnl_sock_priv_setfunction ethnl_sock_priv_destroyfunction ethnl_ops_beginfunction ethnl_ops_completefunction ethnl_parse_header_dev_getfunction ethnl_fill_reply_headerfunction ethnl_reply_initfunction ethnl_multicastfunction ethnl_perphy_dump_contextfunction ethnl_default_parsefunction ethnl_init_reply_datafunction ethnl_default_doitfunction ethnl_default_dump_onefunction ethnl_default_dumpitfunction ethnl_default_startfunction ethnl_perphy_startfunction ethnl_perphy_dump_one_devfunction xa_for_each_startfunction ethnl_perphy_dump_all_devfunction ethnl_perphy_dumpitfunction ethnl_perphy_donefunction ethnl_default_donefunction ethnl_default_set_doitfunction ethnl_default_notifyfunction ethnl_notifyfunction ethtool_notifyfunction ethnl_notify_featuresfunction ethnl_netdev_eventfunction ethnl_initmodule init ethnl_initexport ethtool_notify
Annotated Snippet
subsys_initcall(ethnl_init);
Annotation
- Immediate include surface: `net/netdev_lock.h`, `net/netdev_queues.h`, `net/sock.h`, `linux/ethtool_netlink.h`, `linux/phy_link_topology.h`, `linux/pm_runtime.h`, `common.h`, `module_fw.h`.
- Detected declarations: `struct ethnl_dump_ctx`, `struct ethnl_perphy_dump_ctx`, `function ethnl_sock_priv_set`, `function ethnl_sock_priv_destroy`, `function ethnl_ops_begin`, `function ethnl_ops_complete`, `function ethnl_parse_header_dev_get`, `function ethnl_fill_reply_header`, `function ethnl_reply_init`, `function ethnl_multicast`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- 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.