drivers/net/wan/hdlc.c
Source file repositories/reference/linux-study-clean/drivers/net/wan/hdlc.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wan/hdlc.c- Extension
.c- Size
- 8303 bytes
- Lines
- 380
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- 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/errno.hlinux/hdlc.hlinux/if_arp.hlinux/inetdevice.hlinux/init.hlinux/kernel.hlinux/module.hlinux/notifier.hlinux/pkt_sched.hlinux/poll.hlinux/rtnetlink.hlinux/skbuff.hlinux/slab.hnet/net_namespace.h
Detected Declarations
function hdlc_rcvfunction hdlc_start_xmitfunction hdlc_proto_startfunction hdlc_proto_stopfunction hdlc_device_eventfunction hdlc_openfunction hdlc_closefunction hdlc_ioctlfunction hdlc_setup_devfunction hdlc_setupfunction unregister_hdlc_devicefunction attach_hdlc_protocolfunction detach_hdlc_protocolfunction register_hdlc_protocolfunction unregister_hdlc_protocolfunction hdlc_module_initfunction hdlc_module_exitmodule init hdlc_module_initexport hdlc_start_xmitexport hdlc_openexport hdlc_closeexport hdlc_ioctlexport alloc_hdlcdevexport unregister_hdlc_deviceexport attach_hdlc_protocolexport detach_hdlc_protocolexport register_hdlc_protocolexport unregister_hdlc_protocol
Annotated Snippet
module_init(hdlc_module_init);
module_exit(hdlc_module_exit);
Annotation
- Immediate include surface: `linux/errno.h`, `linux/hdlc.h`, `linux/if_arp.h`, `linux/inetdevice.h`, `linux/init.h`, `linux/kernel.h`, `linux/module.h`, `linux/notifier.h`.
- Detected declarations: `function hdlc_rcv`, `function hdlc_start_xmit`, `function hdlc_proto_start`, `function hdlc_proto_stop`, `function hdlc_device_event`, `function hdlc_open`, `function hdlc_close`, `function hdlc_ioctl`, `function hdlc_setup_dev`, `function hdlc_setup`.
- Atlas domain: Driver Families / drivers/net.
- 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.