net/sched/cls_flow.c
Source file repositories/reference/linux-study-clean/net/sched/cls_flow.c
File Facts
- System
- Linux kernel
- Corpus path
net/sched/cls_flow.c- Extension
.c- Size
- 17285 bytes
- Lines
- 738
- 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/kernel.hlinux/init.hlinux/list.hlinux/jhash.hlinux/random.hlinux/pkt_cls.hlinux/skbuff.hlinux/in.hlinux/ip.hlinux/ipv6.hlinux/if_vlan.hlinux/slab.hlinux/module.hnet/inet_sock.hnet/pkt_cls.hlinux/siphash.hnet/ip.hnet/route.hnet/flow_dissector.hnet/tc_wrapper.hnet/netfilter/nf_conntrack.h
Detected Declarations
struct flow_headstruct flow_filterfunction addr_foldfunction flow_get_srcfunction flow_get_dstfunction flow_get_protofunction flow_get_proto_srcfunction flow_get_proto_dstfunction flow_get_iiffunction flow_get_priorityfunction flow_get_markfunction flow_get_nfctfunction flow_get_nfct_srcfunction flow_get_nfct_dstfunction flow_get_nfct_proto_srcfunction flow_get_nfct_proto_dstfunction flow_get_rtclassidfunction flow_get_skuidfunction flow_get_skgidfunction flow_get_vlan_tagfunction flow_get_rxhashfunction flow_key_getfunction flow_classifyfunction list_for_each_entry_rcufunction flow_perturbationfunction __flow_destroy_filterfunction flow_destroy_filter_workfunction flow_changefunction flow_deletefunction flow_initfunction flow_destroyfunction list_for_each_entry_safefunction flow_dumpfunction flow_walkfunction list_for_each_entryfunction cls_flow_initfunction cls_flow_exitmodule init cls_flow_init
Annotated Snippet
module_init(cls_flow_init);
module_exit(cls_flow_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Patrick McHardy <kaber@trash.net>");
MODULE_DESCRIPTION("TC flow classifier");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/init.h`, `linux/list.h`, `linux/jhash.h`, `linux/random.h`, `linux/pkt_cls.h`, `linux/skbuff.h`, `linux/in.h`.
- Detected declarations: `struct flow_head`, `struct flow_filter`, `function addr_fold`, `function flow_get_src`, `function flow_get_dst`, `function flow_get_proto`, `function flow_get_proto_src`, `function flow_get_proto_dst`, `function flow_get_iif`, `function flow_get_priority`.
- 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.