include/net/aligned_data.h
Source file repositories/reference/linux-study-clean/include/net/aligned_data.h
File Facts
- System
- Linux kernel
- Corpus path
include/net/aligned_data.h- Extension
.h- Size
- 682 bytes
- Lines
- 23
- Domain
- Networking Core
- Bucket
- Sockets, Protocols, Packet Path, And Network Policy
- Inferred role
- Networking Core: implementation source
- Status
- source 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/atomic.hlinux/types.h
Detected Declarations
struct net_aligned_data
Annotated Snippet
struct net_aligned_data {
atomic64_t net_cookie ____cacheline_aligned_in_smp;
#if defined(CONFIG_INET)
atomic_long_t tcp_memory_allocated ____cacheline_aligned_in_smp;
atomic_long_t udp_memory_allocated ____cacheline_aligned_in_smp;
#endif
};
extern struct net_aligned_data net_aligned_data;
#endif /* _NET_ALIGNED_DATA_H */
Annotation
- Immediate include surface: `linux/atomic.h`, `linux/types.h`.
- Detected declarations: `struct net_aligned_data`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: source 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.