net/core/fib_rules.c
Source file repositories/reference/linux-study-clean/net/core/fib_rules.c
File Facts
- System
- Linux kernel
- Corpus path
net/core/fib_rules.c- Extension
.c- Size
- 36155 bytes
- Lines
- 1483
- 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/slab.hlinux/list.hlinux/module.hnet/net_namespace.hnet/inet_dscp.hnet/sock.hnet/fib_rules.hnet/ip_tunnels.hlinux/indirect_call_wrapper.h
Detected Declarations
function fib_rule_matchallfunction fib_default_rule_addfunction fib_default_rule_preffunction rules_ops_putfunction flush_route_cachefunction __fib_rules_registerfunction fib_rules_registerfunction fib_rules_cleanup_opsfunction list_for_each_entry_safefunction fib_rules_unregisterfunction uid_range_setfunction nla_get_kuid_rangefunction nla_put_uid_rangefunction nla_get_port_rangefunction nla_put_port_rangefunction fib_rule_iif_matchfunction fib_rule_oif_matchfunction fib_rule_matchfunction fib_rules_lookupfunction list_for_each_entry_rcufunction call_fib_rule_notifierfunction call_fib_rule_notifiersfunction fib_rules_dumpfunction fib_rules_seq_readfunction list_for_each_entryfunction fib_nl2rule_l3mdevfunction fib_nl2rule_l3mdevfunction fib_nl2rule_port_maskfunction fib_nl2rulefunction fib_nl2rule_rtnlfunction rule_existsfunction list_for_each_entryfunction fib_newrulefunction list_for_each_entryfunction list_for_each_entryfunction fib_nl_newrulefunction fib_delrulefunction list_for_each_entryfunction fib_nl_delrulefunction fib_rule_nlmsg_sizefunction fib_nl_fill_rulefunction dump_rulesfunction fib_valid_dumprule_reqfunction fib_nl_dumprulefunction notify_rule_changefunction attach_rulesfunction list_for_each_entryfunction detach_rules
Annotated Snippet
subsys_initcall(fib_rules_init);
Annotation
- Immediate include surface: `linux/types.h`, `linux/kernel.h`, `linux/slab.h`, `linux/list.h`, `linux/module.h`, `net/net_namespace.h`, `net/inet_dscp.h`, `net/sock.h`.
- Detected declarations: `function fib_rule_matchall`, `function fib_default_rule_add`, `function fib_default_rule_pref`, `function rules_ops_put`, `function flush_route_cache`, `function __fib_rules_register`, `function fib_rules_register`, `function fib_rules_cleanup_ops`, `function list_for_each_entry_safe`, `function fib_rules_unregister`.
- 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.