net/core/netdev-genl.c
Source file repositories/reference/linux-study-clean/net/core/netdev-genl.c
File Facts
- System
- Linux kernel
- Corpus path
net/core/netdev-genl.c- Extension
.c- Size
- 38688 bytes
- Lines
- 1498
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/netdevice.hlinux/notifier.hlinux/rtnetlink.hnet/busy_poll.hnet/net_namespace.hnet/netdev_queues.hnet/netdev_rx_queue.hnet/sock.hnet/xdp.hnet/xdp_sock.hnet/page_pool/memory_provider.hdev.hdevmem.hnetdev-genl-gen.h
Detected Declarations
struct netdev_nl_dump_ctxfunction netdev_nl_dev_fillfunction netdev_genl_dev_notifyfunction netdev_nl_dev_get_doitfunction netdev_nl_dev_get_dumpitfunction for_each_netdev_lock_scopedfunction netdev_nl_napi_fill_onefunction netdev_nl_napi_get_doitfunction netdev_nl_napi_dump_onefunction netdev_nl_napi_get_dumpitfunction for_each_netdev_lock_scopedfunction netdev_nl_napi_set_configfunction netdev_nl_napi_set_doitfunction nla_put_napi_idfunction netdev_nl_queue_fill_leasefunction __netdev_nl_queue_fill_mpfunction netdev_nl_queue_fill_mpfunction netdev_nl_queue_fill_onefunction netdev_nl_queue_validatefunction netdev_nl_queue_fillfunction netdev_nl_queue_get_doitfunction netdev_nl_queue_dump_onefunction netdev_nl_queue_get_dumpitfunction for_each_netdev_lock_ops_compat_scopedfunction netdev_nl_stats_addfunction netdev_stat_putfunction netdev_nl_stats_write_rxfunction netdev_nl_stats_write_txfunction netdev_nl_stats_queuefunction netdev_nl_stats_by_queuefunction netdev_stat_queue_sumfunction netdev_nl_stats_by_netdevfunction netdev_nl_qstats_get_dump_onefunction netdev_nl_qstats_get_dumpitfunction for_each_netdev_lock_ops_compat_scopedfunction netdev_nl_read_rxq_bitmapfunction nla_for_each_attr_typefunction netdev_nl_get_dma_devfunction for_each_set_bitfunction netdev_nl_bind_rx_doitfunction for_each_set_bitfunction netdev_find_netmem_tx_devfunction netdev_nl_bind_tx_doitfunction netdev_nl_queue_create_doitfunction netdev_nl_sock_priv_initfunction netdev_nl_sock_priv_destroyfunction netdev_genl_netdevice_eventfunction netdev_genl_init
Annotated Snippet
subsys_initcall(netdev_genl_init);
Annotation
- Immediate include surface: `linux/netdevice.h`, `linux/notifier.h`, `linux/rtnetlink.h`, `net/busy_poll.h`, `net/net_namespace.h`, `net/netdev_queues.h`, `net/netdev_rx_queue.h`, `net/sock.h`.
- Detected declarations: `struct netdev_nl_dump_ctx`, `function netdev_nl_dev_fill`, `function netdev_genl_dev_notify`, `function netdev_nl_dev_get_doit`, `function netdev_nl_dev_get_dumpit`, `function for_each_netdev_lock_scoped`, `function netdev_nl_napi_fill_one`, `function netdev_nl_napi_get_doit`, `function netdev_nl_napi_dump_one`, `function netdev_nl_napi_get_dumpit`.
- 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.
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.