net/shaper/shaper.c
Source file repositories/reference/linux-study-clean/net/shaper/shaper.c
File Facts
- System
- Linux kernel
- Corpus path
net/shaper/shaper.c- Extension
.c- Size
- 40395 bytes
- Lines
- 1549
- 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/bits.hlinux/bitfield.hlinux/idr.hlinux/kernel.hlinux/netdevice.hlinux/netlink.hlinux/skbuff.hlinux/xarray.hnet/devlink.hnet/net_shaper.hshaper_nl_gen.h../core/dev.h
Detected Declarations
struct net_shaper_hierarchystruct net_shaper_nl_ctxfunction net_shaper_hierarchyfunction net_shaper_hierarchy_rcufunction net_shaper_opsfunction net_shaper_list_lenfunction net_shaper_handle_sizefunction net_shaper_group_reply_sizefunction net_shaper_fill_bindingfunction net_shaper_fill_handlefunction net_shaper_copyfunction net_shaper_fill_onefunction net_shaper_ctx_setupfunction hierarchyfunction net_shaper_ctx_cleanupfunction net_shaper_ctx_cleanup_unlockfunction net_shaper_handle_to_indexfunction net_shaper_index_to_handlefunction net_shaper_default_parentfunction net_shaper_lookupfunction hierarchyfunction net_shaper_pre_insertfunction net_shaper_pre_insertfunction net_shaper_rollbackfunction xa_for_eachfunction net_shaper_parse_handlefunction net_shaper_validate_capsfunction net_shaper_parse_infofunction net_shaper_validate_nestingfunction net_shaper_parse_leaffunction net_shaper_parse_nodefunction net_shaper_generic_prefunction net_shaper_nl_pre_doitfunction net_shaper_generic_postfunction net_shaper_nl_post_doitfunction net_shaper_nl_pre_doit_writefunction net_shaper_nl_post_doit_writefunction net_shaper_nl_pre_dumpitfunction net_shaper_nl_post_dumpitfunction net_shaper_nl_cap_pre_doitfunction net_shaper_nl_cap_post_doitfunction net_shaper_nl_cap_pre_dumpitfunction net_shaper_nl_cap_post_dumpitfunction net_shaper_nl_get_doitfunction net_shaper_nl_get_dumpitfunction net_shaper_nl_set_doitfunction __net_shaper_deletefunction net_shaper_handle_cmp
Annotated Snippet
subsys_initcall(shaper_init);
Annotation
- Immediate include surface: `linux/bits.h`, `linux/bitfield.h`, `linux/idr.h`, `linux/kernel.h`, `linux/netdevice.h`, `linux/netlink.h`, `linux/skbuff.h`, `linux/xarray.h`.
- Detected declarations: `struct net_shaper_hierarchy`, `struct net_shaper_nl_ctx`, `function net_shaper_hierarchy`, `function net_shaper_hierarchy_rcu`, `function net_shaper_ops`, `function net_shaper_list_len`, `function net_shaper_handle_size`, `function net_shaper_group_reply_size`, `function net_shaper_fill_binding`, `function net_shaper_fill_handle`.
- 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.