net/xfrm/xfrm_compat.c
Source file repositories/reference/linux-study-clean/net/xfrm/xfrm_compat.c
File Facts
- System
- Linux kernel
- Corpus path
net/xfrm/xfrm_compat.c- Extension
.c- Size
- 20521 bytes
- Lines
- 692
- 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.
- 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/compat.hlinux/nospec.hlinux/xfrm.hnet/xfrm.h
Detected Declarations
struct compat_xfrm_lifetime_cfgstruct compat_xfrm_lifetime_curstruct compat_xfrm_userpolicy_infostruct compat_xfrm_usersa_infostruct compat_xfrm_user_acquirestruct compat_xfrm_userspi_infostruct compat_xfrm_user_expirestruct compat_xfrm_user_polexpirefunction xfrm_nla_cpyfunction xfrm_xlate64_attrfunction xfrm_xlate64function nla_for_each_attrfunction xfrm_alloc_compatfunction xfrm_user_rcv_calculate_len64function xfrm_attr_cpy32function xfrm_xlate32_attrfunction xfrm_xlate32function xfrm_user_policy_compatfunction xfrm_compat_initfunction xfrm_compat_exitmodule init xfrm_compat_init
Annotated Snippet
module_init(xfrm_compat_init);
module_exit(xfrm_compat_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Dmitry Safonov");
MODULE_DESCRIPTION("XFRM 32-bit compatibility layer");
Annotation
- Immediate include surface: `linux/compat.h`, `linux/nospec.h`, `linux/xfrm.h`, `net/xfrm.h`.
- Detected declarations: `struct compat_xfrm_lifetime_cfg`, `struct compat_xfrm_lifetime_cur`, `struct compat_xfrm_userpolicy_info`, `struct compat_xfrm_usersa_info`, `struct compat_xfrm_user_acquire`, `struct compat_xfrm_userspi_info`, `struct compat_xfrm_user_expire`, `struct compat_xfrm_user_polexpire`, `function xfrm_nla_cpy`, `function xfrm_xlate64_attr`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: integration implementation candidate.
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.