net/core/netprio_cgroup.c
Source file repositories/reference/linux-study-clean/net/core/netprio_cgroup.c
File Facts
- System
- Linux kernel
- Corpus path
net/core/netprio_cgroup.c- Extension
.c- Size
- 6578 bytes
- Lines
- 296
- 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.
- 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/string.hlinux/errno.hlinux/skbuff.hlinux/cgroup.hlinux/rcupdate.hlinux/atomic.hlinux/sched/task.hnet/rtnetlink.hnet/pkt_cls.hnet/sock.hnet/netprio_cgroup.hlinux/fdtable.h
Detected Declarations
function extend_netdev_tablefunction netprio_priofunction netprio_set_priofunction cgrp_css_allocfunction cgrp_css_onlinefunction cgrp_css_freefunction read_prioidxfunction read_priomapfunction write_priomapfunction update_netpriofunction net_prio_attachfunction cgroup_taskset_for_eachfunction netprio_device_eventfunction init_cgroup_netpriomodule init init_cgroup_netprio
Annotated Snippet
subsys_initcall(init_cgroup_netprio);
Annotation
- Immediate include surface: `linux/module.h`, `linux/slab.h`, `linux/types.h`, `linux/string.h`, `linux/errno.h`, `linux/skbuff.h`, `linux/cgroup.h`, `linux/rcupdate.h`.
- Detected declarations: `function extend_netdev_table`, `function netprio_prio`, `function netprio_set_prio`, `function cgrp_css_alloc`, `function cgrp_css_online`, `function cgrp_css_free`, `function read_prioidx`, `function read_priomap`, `function write_priomap`, `function update_netprio`.
- 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.
- 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.