net/ipv4/cipso_ipv4.c
Source file repositories/reference/linux-study-clean/net/ipv4/cipso_ipv4.c
File Facts
- System
- Linux kernel
- Corpus path
net/ipv4/cipso_ipv4.c- Extension
.c- Size
- 63444 bytes
- Lines
- 2326
- 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/init.hlinux/types.hlinux/rcupdate.hlinux/list.hlinux/spinlock.hlinux/string.hlinux/jhash.hlinux/audit.hlinux/slab.hnet/ip.hnet/icmp.hnet/tcp.hnet/netlabel.hnet/cipso_ipv4.hlinux/atomic.hlinux/bug.hlinux/unaligned.h
Detected Declarations
struct cipso_v4_map_cache_bktstruct cipso_v4_map_cache_entryfunction lengthfunction cipso_v4_map_cache_hashfunction cipso_v4_cache_initfunction cipso_v4_cache_invalidatefunction list_for_each_entry_safefunction cipso_v4_cache_checkfunction cipso_v4_cache_addfunction typefunction cipso_v4_doi_freefunction call_rcufunction cipso_v4_doi_removefunction rcu_read_lockfunction cipso_v4_doi_getdeffunction cipso_v4_doi_walkfunction cipso_v4_map_lvl_validfunction cipso_v4_map_lvl_htonfunction cipso_v4_map_lvl_ntohfunction cipso_v4_map_cat_rbm_validfunction cipso_v4_map_cat_rbm_htonfunction cipso_v4_map_cat_rbm_ntohfunction cipso_v4_map_cat_enum_validfunction cipso_v4_map_cat_enum_htonfunction cipso_v4_map_cat_enum_ntohfunction cipso_v4_map_cat_rng_validfunction cipso_v4_map_cat_rng_htonfunction cipso_v4_map_cat_rng_ntohfunction cipso_v4_gentag_hdrfunction cipso_v4_gentag_rbmfunction tagfunction cipso_v4_gentag_enumfunction tagfunction cipso_v4_gentag_rngfunction tagfunction cipso_v4_gentag_locfunction cipso_v4_parsetag_locfunction cipso_v4_validatefunction offfunction permittedfunction cipso_v4_genoptfunction cipso_v4_get_actual_opt_lenfunction cipso_v4_sock_setattrfunction cipso_v4_req_setattrfunction cipso_v4_deloptfunction cipso_v4_sock_delattrfunction cipso_v4_req_delattrfunction cipso_v4_getattr
Annotated Snippet
subsys_initcall(cipso_v4_init);
Annotation
- Immediate include surface: `linux/init.h`, `linux/types.h`, `linux/rcupdate.h`, `linux/list.h`, `linux/spinlock.h`, `linux/string.h`, `linux/jhash.h`, `linux/audit.h`.
- Detected declarations: `struct cipso_v4_map_cache_bkt`, `struct cipso_v4_map_cache_entry`, `function length`, `function cipso_v4_map_cache_hash`, `function cipso_v4_cache_init`, `function cipso_v4_cache_invalidate`, `function list_for_each_entry_safe`, `function cipso_v4_cache_check`, `function cipso_v4_cache_add`, `function type`.
- 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.