net/sched/sch_netem.c
Source file repositories/reference/linux-study-clean/net/sched/sch_netem.c
File Facts
- System
- Linux kernel
- Corpus path
net/sched/sch_netem.c- Extension
.c- Size
- 35875 bytes
- Lines
- 1431
- 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/mm.hlinux/module.hlinux/slab.hlinux/types.hlinux/kernel.hlinux/errno.hlinux/skbuff.hlinux/vmalloc.hlinux/prandom.hlinux/rtnetlink.hlinux/reciprocal_div.hlinux/rbtree.hnet/gso.hnet/netlink.hnet/pkt_sched.hnet/inet_ecn.h
Detected Declarations
struct disttablestruct netem_sched_datastruct crndstatestruct prngstruct slotstatestruct clgstatestruct netem_skb_cbfunction init_crandomfunction get_crandomfunction GIfunction casesfunction loss_eventfunction tabledistfunction packet_time_nsfunction tfifo_resetfunction tfifo_enqueuefunction netem_enqueuefunction get_slot_nextfunction netem_erase_headfunction netem_resetfunction dist_freefunction get_dist_tablefunction validate_timefunction validate_slotfunction get_slotfunction get_correlationfunction get_reorderfunction get_corruptfunction get_ratefunction get_loss_clgfunction nla_for_each_nestedfunction parse_attrfunction netem_changefunction netem_initfunction netem_destroyfunction dump_loss_modelfunction netem_dumpfunction netem_dump_statsfunction netem_dump_classfunction netem_graftfunction netem_findfunction netem_walkfunction netem_module_initfunction netem_module_exitmodule init netem_module_init
Annotated Snippet
module_init(netem_module_init)
module_exit(netem_module_exit)
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Network characteristics emulator qdisc");
Annotation
- Immediate include surface: `linux/mm.h`, `linux/module.h`, `linux/slab.h`, `linux/types.h`, `linux/kernel.h`, `linux/errno.h`, `linux/skbuff.h`, `linux/vmalloc.h`.
- Detected declarations: `struct disttable`, `struct netem_sched_data`, `struct crndstate`, `struct prng`, `struct slotstate`, `struct clgstate`, `struct netem_skb_cb`, `function init_crandom`, `function get_crandom`, `function GI`.
- 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.