net/sched/act_api.c
Source file repositories/reference/linux-study-clean/net/sched/act_api.c
File Facts
- System
- Linux kernel
- Corpus path
net/sched/act_api.c- Extension
.c- Size
- 55156 bytes
- Lines
- 2300
- 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/types.hlinux/kernel.hlinux/string.hlinux/errno.hlinux/slab.hlinux/skbuff.hlinux/init.hlinux/kmod.hlinux/err.hlinux/module.hnet/net_namespace.hnet/sock.hnet/sch_generic.hnet/pkt_cls.hnet/tc_act/tc_pedit.hnet/act_api.hnet/netlink.hnet/flow_offload.hnet/tc_wrapper.h
Detected Declarations
struct tc_act_pernet_idfunction tcf_dev_queue_xmitfunction tcf_action_goto_chain_execfunction tcf_free_cookie_rcufunction tcf_set_action_cookiefunction tcf_action_check_ctrlactfunction free_tcffunction offload_action_hw_count_setfunction offload_action_hw_count_incfunction offload_action_hw_count_decfunction tcf_offload_act_num_actions_singlefunction tc_act_skip_hwfunction tc_act_skip_swfunction tc_act_flags_validfunction offload_action_initfunction tcf_action_offload_cmd_exfunction tcf_action_offload_cmd_cb_exfunction tcf_action_offload_cmdfunction tcf_action_offload_add_exfunction tcf_action_offload_addfunction tcf_action_update_hw_statsfunction tcf_action_offload_del_exfunction tcf_action_offload_delfunction tcf_action_cleanupfunction __tcf_action_putfunction __tcf_idr_releasefunction interfacefunction tcf_idr_releasefunction tcf_action_shared_attrs_sizefunction tcf_action_full_attrs_sizefunction tcf_action_fill_sizefunction tcf_action_dump_tersefunction tcf_action_dump_1function tcf_dump_walkerfunction idr_for_each_entry_ulfunction tcf_idr_release_unsafefunction tcf_del_walkerfunction tcf_generic_walkerfunction tcf_idr_searchfunction __tcf_generic_walkerfunction __tcf_idr_searchfunction tcf_idr_delete_indexfunction tcf_idr_createfunction tcf_idr_create_from_flagsfunction tcf_idr_cleanupfunction pointerfunction tcf_idrinfo_destroyfunction idr_for_each_entry_ul
Annotated Snippet
subsys_initcall(tc_action_init);
Annotation
- Immediate include surface: `linux/types.h`, `linux/kernel.h`, `linux/string.h`, `linux/errno.h`, `linux/slab.h`, `linux/skbuff.h`, `linux/init.h`, `linux/kmod.h`.
- Detected declarations: `struct tc_act_pernet_id`, `function tcf_dev_queue_xmit`, `function tcf_action_goto_chain_exec`, `function tcf_free_cookie_rcu`, `function tcf_set_action_cookie`, `function tcf_action_check_ctrlact`, `function free_tcf`, `function offload_action_hw_count_set`, `function offload_action_hw_count_inc`, `function offload_action_hw_count_dec`.
- 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.