net/llc/llc_input.c
Source file repositories/reference/linux-study-clean/net/llc/llc_input.c
File Facts
- System
- Linux kernel
- Corpus path
net/llc/llc_input.c- Extension
.c- Size
- 5772 bytes
- Lines
- 225
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/netdevice.hlinux/slab.hlinux/export.hnet/net_namespace.hnet/llc.hnet/llc_pdu.hnet/llc_sap.h
Detected Declarations
function llc_add_packfunction llc_remove_packfunction llc_set_station_handlerfunction llc_pdu_typefunction llc_fixup_skbfunction connectionexport llc_add_packexport llc_remove_packexport llc_set_station_handler
Annotated Snippet
if (rcv) {
struct sk_buff *cskb = skb_clone(skb, GFP_ATOMIC);
if (cskb)
rcv(cskb, dev, pt, orig_dev);
}
sap_handler(sap, skb);
}
llc_sap_put(sap);
out:
return 0;
drop:
kfree_skb(skb);
goto out;
handle_station:
sta_handler = READ_ONCE(llc_station_handler);
if (!sta_handler)
goto drop;
sta_handler(skb);
goto out;
}
EXPORT_SYMBOL(llc_add_pack);
EXPORT_SYMBOL(llc_remove_pack);
EXPORT_SYMBOL(llc_set_station_handler);
Annotation
- Immediate include surface: `linux/netdevice.h`, `linux/slab.h`, `linux/export.h`, `net/net_namespace.h`, `net/llc.h`, `net/llc_pdu.h`, `net/llc_sap.h`.
- Detected declarations: `function llc_add_pack`, `function llc_remove_pack`, `function llc_set_station_handler`, `function llc_pdu_type`, `function llc_fixup_skb`, `function connection`, `export llc_add_pack`, `export llc_remove_pack`, `export llc_set_station_handler`.
- 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.