net/sched/cls_fw.c
Source file repositories/reference/linux-study-clean/net/sched/cls_fw.c
File Facts
- System
- Linux kernel
- Corpus path
net/sched/cls_fw.c- Extension
.c- Size
- 10032 bytes
- Lines
- 466
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/netlink.hnet/act_api.hnet/pkt_cls.hnet/sch_generic.hnet/tc_wrapper.h
Detected Declarations
struct fw_headstruct fw_filterfunction fw_hashfunction fw_classifyfunction fw_initfunction __fw_delete_filterfunction fw_delete_filter_workfunction fw_destroyfunction fw_deletefunction fw_set_parmsfunction fw_changefunction fw_walkfunction fw_dumpfunction fw_bind_classfunction init_fwfunction exit_fwmodule init init_fw
Annotated Snippet
module_init(init_fw)
module_exit(exit_fw)
MODULE_DESCRIPTION("SKB mark 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/netlink.h`.
- Detected declarations: `struct fw_head`, `struct fw_filter`, `function fw_hash`, `function fw_classify`, `function fw_init`, `function __fw_delete_filter`, `function fw_delete_filter_work`, `function fw_destroy`, `function fw_delete`, `function fw_set_parms`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: integration implementation candidate.
- 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.