drivers/net/wan/hdlc_cisco.c
Source file repositories/reference/linux-study-clean/drivers/net/wan/hdlc_cisco.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wan/hdlc_cisco.c- Extension
.c- Size
- 9547 bytes
- Lines
- 384
- 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.
- Touches user memory; correctness depends on fault-safe copying and privilege boundary handling.
- 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/errno.hlinux/hdlc.hlinux/if_arp.hlinux/inetdevice.hlinux/init.hlinux/kernel.hlinux/module.hlinux/pkt_sched.hlinux/poll.hlinux/rtnetlink.hlinux/skbuff.h
Detected Declarations
struct hdlc_headerstruct cisco_packetstruct cisco_statefunction cisco_hard_headerfunction cisco_keepalive_sendfunction cisco_type_transfunction cisco_rxfunction in_dev_for_each_ifa_rcufunction cisco_timerfunction time_afterfunction cisco_startfunction cisco_stopfunction cisco_ioctlfunction hdlc_cisco_initfunction hdlc_cisco_exitmodule init hdlc_cisco_init
Annotated Snippet
module_init(hdlc_cisco_init);
module_exit(hdlc_cisco_exit);
MODULE_AUTHOR("Krzysztof Halasa <khc@pm.waw.pl>");
MODULE_DESCRIPTION("Cisco HDLC 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 cisco_packet`, `struct cisco_state`, `function cisco_hard_header`, `function cisco_keepalive_send`, `function cisco_type_trans`, `function cisco_rx`, `function in_dev_for_each_ifa_rcu`, `function cisco_timer`, `function time_after`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: integration implementation candidate.
- This snippet crosses the user/kernel memory boundary; validate fault handling and access checks before translating the pattern.
- 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.