net/core/lwt_bpf.c
Source file repositories/reference/linux-study-clean/net/core/lwt_bpf.c
File Facts
- System
- Linux kernel
- Corpus path
net/core/lwt_bpf.c- Extension
.c- Size
- 15858 bytes
- Lines
- 679
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/filter.hlinux/kernel.hlinux/module.hlinux/skbuff.hlinux/types.hlinux/bpf.hnet/flow.hnet/lwtunnel.hnet/gre.hnet/ip.hnet/ip6_route.h
Detected Declarations
struct bpf_lwt_progstruct bpf_lwtfunction run_lwt_bpffunction bpf_lwt_input_reroutefunction bpf_inputfunction bpf_outputfunction xmit_check_hhlenfunction bpf_lwt_xmit_reroutefunction bpf_xmitfunction bpf_lwt_prog_destroyfunction bpf_destroy_statefunction bpf_parse_progfunction bpf_build_statefunction bpf_fill_lwt_progfunction bpf_fill_encap_infofunction bpf_encap_nlsizefunction bpf_lwt_prog_cmpfunction bpf_encap_cmpfunction handle_gso_typefunction handle_gso_encapfunction bpf_lwt_push_ip_encapfunction bpf_lwt_initmodule init bpf_lwt_init
Annotated Snippet
subsys_initcall(bpf_lwt_init)
Annotation
- Immediate include surface: `linux/filter.h`, `linux/kernel.h`, `linux/module.h`, `linux/skbuff.h`, `linux/types.h`, `linux/bpf.h`, `net/flow.h`, `net/lwtunnel.h`.
- Detected declarations: `struct bpf_lwt_prog`, `struct bpf_lwt`, `function run_lwt_bpf`, `function bpf_lwt_input_reroute`, `function bpf_input`, `function bpf_output`, `function xmit_check_hhlen`, `function bpf_lwt_xmit_reroute`, `function bpf_xmit`, `function bpf_lwt_prog_destroy`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: integration implementation candidate.
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.