net/l2tp/l2tp_netlink.c
Source file repositories/reference/linux-study-clean/net/l2tp/l2tp_netlink.c
File Facts
- System
- Linux kernel
- Corpus path
net/l2tp/l2tp_netlink.c- Extension
.c- Size
- 27877 bytes
- Lines
- 1061
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
net/sock.hnet/genetlink.hnet/udp.hlinux/in.hlinux/udp.hlinux/socket.hlinux/module.hlinux/list.hnet/net_namespace.hlinux/l2tp.hl2tp_core.h
Detected Declarations
struct l2tp_nl_cb_datafunction l2tp_nl_cmd_noopfunction l2tp_tunnel_notifyfunction l2tp_session_notifyfunction l2tp_nl_cmd_tunnel_create_get_addrfunction l2tp_nl_cmd_tunnel_createfunction l2tp_nl_cmd_tunnel_deletefunction l2tp_nl_cmd_tunnel_modifyfunction l2tp_nl_tunnel_send_addr6function l2tp_nl_tunnel_send_addr4function l2tp_nl_tunnel_send_addrfunction l2tp_nl_tunnel_sendfunction l2tp_nl_cmd_tunnel_getfunction l2tp_nl_cmd_tunnel_dumpfunction l2tp_nl_cmd_session_createfunction l2tp_nl_cmd_session_deletefunction l2tp_nl_cmd_session_modifyfunction l2tp_nl_session_sendfunction l2tp_nl_cmd_session_getfunction l2tp_nl_cmd_session_dumpfunction l2tp_nl_register_opsfunction l2tp_nl_unregister_opsfunction l2tp_nl_initfunction l2tp_nl_cleanupmodule init l2tp_nl_initexport l2tp_nl_register_opsexport l2tp_nl_unregister_ops
Annotated Snippet
module_init(l2tp_nl_init);
module_exit(l2tp_nl_cleanup);
MODULE_AUTHOR("James Chapman <jchapman@katalix.com>");
MODULE_DESCRIPTION("L2TP netlink");
MODULE_LICENSE("GPL");
MODULE_VERSION("1.0");
MODULE_ALIAS_GENL_FAMILY("l2tp");
Annotation
- Immediate include surface: `net/sock.h`, `net/genetlink.h`, `net/udp.h`, `linux/in.h`, `linux/udp.h`, `linux/socket.h`, `linux/module.h`, `linux/list.h`.
- Detected declarations: `struct l2tp_nl_cb_data`, `function l2tp_nl_cmd_noop`, `function l2tp_tunnel_notify`, `function l2tp_session_notify`, `function l2tp_nl_cmd_tunnel_create_get_addr`, `function l2tp_nl_cmd_tunnel_create`, `function l2tp_nl_cmd_tunnel_delete`, `function l2tp_nl_cmd_tunnel_modify`, `function l2tp_nl_tunnel_send_addr6`, `function l2tp_nl_tunnel_send_addr4`.
- 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.