net/sched/cls_route.c
Source file repositories/reference/linux-study-clean/net/sched/cls_route.c
File Facts
- System
- Linux kernel
- Corpus path
net/sched/cls_route.c- Extension
.c- Size
- 15041 bytes
- Lines
- 690
- 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.
- 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/slab.hlinux/types.hlinux/kernel.hlinux/string.hlinux/errno.hlinux/skbuff.hnet/dst.hnet/route.hnet/netlink.hnet/act_api.hnet/pkt_cls.hnet/tc_wrapper.h
Detected Declarations
struct route4_fastmapstruct route4_headstruct route4_bucketstruct route4_filterfunction route4_fastmap_hashfunction route4_reset_fastmapfunction route4_set_fastmapfunction route4_hash_tofunction route4_hash_fromfunction route4_hash_iiffunction route4_hash_wildfunction route4_classifyfunction to_hashfunction from_hashfunction route4_initfunction __route4_delete_filterfunction route4_delete_filter_workfunction route4_queue_workfunction route4_destroyfunction route4_deletefunction route4_set_parmsfunction route4_changefunction route4_walkfunction route4_dumpfunction route4_bind_classfunction init_route4function exit_route4module init init_route4
Annotated Snippet
module_init(init_route4)
module_exit(exit_route4)
MODULE_DESCRIPTION("Routing table realm based TC classifier");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/slab.h`, `linux/types.h`, `linux/kernel.h`, `linux/string.h`, `linux/errno.h`, `linux/skbuff.h`, `net/dst.h`.
- Detected declarations: `struct route4_fastmap`, `struct route4_head`, `struct route4_bucket`, `struct route4_filter`, `function route4_fastmap_hash`, `function route4_reset_fastmap`, `function route4_set_fastmap`, `function route4_hash_to`, `function route4_hash_from`, `function route4_hash_iif`.
- 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.