net/sched/cls_bpf.c
Source file repositories/reference/linux-study-clean/net/sched/cls_bpf.c
File Facts
- System
- Linux kernel
- Corpus path
net/sched/cls_bpf.c- Extension
.c- Size
- 17134 bytes
- Lines
- 712
- 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.
- 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
linux/module.hlinux/types.hlinux/skbuff.hlinux/filter.hlinux/bpf.hlinux/idr.hnet/rtnetlink.hnet/pkt_cls.hnet/sock.hnet/tc_wrapper.h
Detected Declarations
struct cls_bpf_headstruct cls_bpf_progfunction cls_bpf_exec_opcodefunction cls_bpf_classifyfunction list_for_each_entry_rcufunction cls_bpf_is_ebpffunction cls_bpf_offload_cmdfunction cls_bpf_flagsfunction cls_bpf_offloadfunction cls_bpf_stop_offloadfunction cls_bpf_offload_update_statsfunction cls_bpf_initfunction cls_bpf_free_parmsfunction __cls_bpf_delete_progfunction cls_bpf_delete_prog_workfunction __cls_bpf_deletefunction cls_bpf_deletefunction cls_bpf_destroyfunction list_for_each_entryfunction cls_bpf_prog_from_opsfunction cls_bpf_prog_from_efdfunction cls_bpf_changefunction cls_bpf_dump_bpf_infofunction cls_bpf_dump_ebpf_infofunction cls_bpf_dumpfunction cls_bpf_bind_classfunction cls_bpf_walkfunction list_for_each_entryfunction cls_bpf_reoffloadfunction list_for_each_entryfunction cls_bpf_init_modfunction cls_bpf_exit_modmodule init cls_bpf_init_mod
Annotated Snippet
module_init(cls_bpf_init_mod);
module_exit(cls_bpf_exit_mod);
Annotation
- Immediate include surface: `linux/module.h`, `linux/types.h`, `linux/skbuff.h`, `linux/filter.h`, `linux/bpf.h`, `linux/idr.h`, `net/rtnetlink.h`, `net/pkt_cls.h`.
- Detected declarations: `struct cls_bpf_head`, `struct cls_bpf_prog`, `function cls_bpf_exec_opcode`, `function cls_bpf_classify`, `function list_for_each_entry_rcu`, `function cls_bpf_is_ebpf`, `function cls_bpf_offload_cmd`, `function cls_bpf_flags`, `function cls_bpf_offload`, `function cls_bpf_stop_offload`.
- 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.