include/net/datalink.h
Source file repositories/reference/linux-study-clean/include/net/datalink.h
File Facts
- System
- Linux kernel
- Corpus path
include/net/datalink.h- Extension
.h- Size
- 590 bytes
- Lines
- 27
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/list.h
Detected Declarations
struct llc_sapstruct net_devicestruct packet_typestruct sk_buffstruct datalink_proto
Annotated Snippet
struct datalink_proto {
unsigned char type[8];
struct llc_sap *sap;
unsigned short header_length;
int (*rcvfunc)(struct sk_buff *, struct net_device *,
struct packet_type *, struct net_device *);
int (*request)(struct datalink_proto *, struct sk_buff *,
const unsigned char *);
struct list_head node;
};
#endif
Annotation
- Immediate include surface: `linux/list.h`.
- Detected declarations: `struct llc_sap`, `struct net_device`, `struct packet_type`, `struct sk_buff`, `struct datalink_proto`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: source 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.