drivers/net/wan/hdlc_ppp.c
Source file repositories/reference/linux-study-clean/drivers/net/wan/hdlc_ppp.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wan/hdlc_ppp.c- Extension
.c- Size
- 19334 bytes
- Lines
- 724
- 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/pkt_sched.hlinux/poll.hlinux/skbuff.hlinux/slab.hlinux/spinlock.h
Detected Declarations
struct hdlc_headerstruct cp_headerstruct protostruct pppfunction ppp_type_transfunction ppp_hard_headerfunction ppp_tx_flushfunction ppp_tx_cpfunction ppp_cp_eventfunction ppp_cp_parse_crfunction ppp_rxfunction ppp_timerfunction ppp_startfunction ppp_stopfunction ppp_closefunction ppp_ioctlfunction hdlc_ppp_initfunction hdlc_ppp_exitmodule init hdlc_ppp_init
Annotated Snippet
module_init(hdlc_ppp_init);
module_exit(hdlc_ppp_exit);
MODULE_AUTHOR("Krzysztof Halasa <khc@pm.waw.pl>");
MODULE_DESCRIPTION("PPP protocol support for generic HDLC");
MODULE_LICENSE("GPL v2");
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/pkt_sched.h`.
- Detected declarations: `struct hdlc_header`, `struct cp_header`, `struct proto`, `struct ppp`, `function ppp_type_trans`, `function ppp_hard_header`, `function ppp_tx_flush`, `function ppp_tx_cp`, `function ppp_cp_event`, `function ppp_cp_parse_cr`.
- 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.